sleep and fake pam Authentication Failure message if nonexistant username is given
authorIan Beckwith <ianb@nessie.mcc.ac.uk>
Mon, 8 Oct 2007 02:26:02 +0000 (03:26 +0100)
committerIan Beckwith <ianb@nessie.mcc.ac.uk>
Mon, 8 Oct 2007 02:26:02 +0000 (03:26 +0100)
ckuus7.c

index 5a73d12..8801478 100644 (file)
--- a/ckuus7.c
+++ b/ckuus7.c
@@ -14908,6 +14908,12 @@ ckxlogin(userid, passwd, acct, promptok)
     if (ok) {
         ok = zvpass((char *)passwd);    /* Check password */
         debug(F101,"ckxlogin zvpass","",ok);
+#ifdef CK_PAM
+    } else {
+       /* Fake pam password failure for nonexistent users */
+       sleep(1);
+       printf("Authentication failure\n");
+#endif
     }
 
     if (ok > 0 && isguest) {