From 2270c7e8aa380a95628ec4faaf5544c0cbb70da5 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 13 Sep 2003 10:41:56 +1000 Subject: [PATCH] - (dtucker) [auth-passwd.c] On AIX, call setauthdb() before loginsuccess(), required to correctly reset failed login count when using a password registry other than "files" (eg LDAP, see bug #543). --- ChangeLog | 5 ++++- auth-passwd.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4b1848f3..cc21f0abc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 20030913 - (dtucker) [regress/agent-timeout.sh] Timeout of 5 sec is borderline for slower hosts, increase to 10 sec. + - (dtucker) [auth-passwd.c] On AIX, call setauthdb() before loginsuccess(), + required to correctly reset failed login count when using a password + registry other than "files" (eg LDAP, see bug #543). 20030912 - (tim) [regress/agent-ptrace.sh] sh doesn't like "if ! shell_function; then". @@ -1079,4 +1082,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.2986 2003/09/12 23:46:03 dtucker Exp $ +$Id: ChangeLog,v 1.2987 2003/09/13 00:41:56 dtucker Exp $ diff --git a/auth-passwd.c b/auth-passwd.c index 57a2d3620..95cc134de 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -110,6 +110,7 @@ auth_password(Authctxt *authctxt, const char *password) pw->pw_name, authmsg); /* No pty yet, so just label the line as "ssh" */ + aix_setauthdb(authctxt->user); if (loginsuccess(authctxt->user, host, "ssh", &msg) == 0) { if (msg != NULL) {