From 450a158d7ef01e44723802e28a65348375718a2c Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 30 May 2004 20:43:59 +1000 Subject: - (dtucker) [auth-pam.c auth-pam.h auth-passwd.c]: Bug #874: Re-add PAM support for PasswordAuthentication=yes. ok djm@ --- auth-passwd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'auth-passwd.c') diff --git a/auth-passwd.c b/auth-passwd.c index beaf0fa6c..da247df7d 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -91,6 +91,10 @@ auth_password(Authctxt *authctxt, const char *password) return ok; } #endif +#ifdef USE_PAM + if (options.use_pam) + return (sshpam_auth_passwd(authctxt, password) && ok); +#endif #if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE) if (!expire_checked) { expire_checked = 1; -- cgit v1.2.3