]> andersk Git - moira.git/commitdiff
in case of bad password, use our error message, not one from Kerberos
authormar <mar>
Wed, 14 Aug 1991 16:04:56 +0000 (16:04 +0000)
committermar <mar>
Wed, 14 Aug 1991 16:04:56 +0000 (16:04 +0000)
clients/userreg/userreg.c

index 6b33ab4c7e9012ca8bcb0a8c724e4bdff7364dfa..a6726c807ef1a0fcaf57c97764d6b5cbc08953f0 100644 (file)
@@ -502,7 +502,9 @@ negotiate_passwd()
        if (result == KSUCCESS)
          result = kadm_check_pw(key, passwd, &error);
        dest_tkt();
-       if (result != KSUCCESS && result != KADM_INSECURE_PW) {
+       if (result == KADM_INSECURE_PW) {
+           error = "You have chosen a passsword that is in the dictionary of commonly\nselected user passwords.  You will have to choose a better password.";
+       } else if (result != KSUCCESS) {
            display_text(NETWORK_DOWN);
            display_text_line(" ");
            sprintf(fullname, "%s while verifying password",
This page took 0.322559 seconds and 5 git commands to generate.