- (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).
diff --git a/auth-passwd.c b/auth-passwd.c
index 57a2d36..95cc134 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -110,6 +110,7 @@
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) {