From 1fa154bb1e06bfb4f8d6b95f09a6352d38577c57 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 23 Jan 2000 10:32:03 +1100 Subject: - AIX patch from Matt Richards and David Rankin --- auth-passwd.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'auth-passwd.c') diff --git a/auth-passwd.c b/auth-passwd.c index a8a52ce9a..278212aa5 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -11,13 +11,17 @@ #ifndef USE_PAM -RCSID("$Id: auth-passwd.c,v 1.15 2000/01/06 01:03:13 damien Exp $"); +RCSID("$Id: auth-passwd.c,v 1.16 2000/01/22 23:32:03 damien Exp $"); #include "packet.h" #include "ssh.h" #include "servconf.h" #include "xmalloc.h" +#ifdef WITH_AIXAUTHENTICATE +#include +#endif + #ifdef HAVE_SHADOW_H # include #endif @@ -39,6 +43,11 @@ auth_password(struct passwd * pw, const char *password) #ifdef HAVE_SHADOW_H struct spwd *spw; #endif +#ifdef WITH_AIXAUTHENTICATE + char *authmsg; + char *loginmsg; + int reenter = 1; +#endif /* deny if no user. */ if (pw == NULL) @@ -56,6 +65,11 @@ auth_password(struct passwd * pw, const char *password) /* Fall back to ordinary passwd authentication. */ } #endif + +#ifdef WITH_AIXAUTHENTICATE + return (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); +#endif + #ifdef KRB4 if (options.kerberos_authentication == 1) { int ret = auth_krb4_password(pw, password); -- cgit v1.2.3