summaryrefslogtreecommitdiffstats
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-08-25 05:08:49 +0200
committerDamien Miller <djm@mindrot.org>2003-08-25 05:08:49 +0200
commit1f499fd3688d034daf787859044ede73767b6141 (patch)
tree0fec594fff3ac5fb6cc4faab19924e047db10207 /auth1.c
parent - (dtucker) [acconfig.h auth.c configure.ac sshd.8] Bug #422 again: deny (diff)
downloadopenssh-1f499fd3688d034daf787859044ede73767b6141.tar.xz
openssh-1f499fd3688d034daf787859044ede73767b6141.zip
- (djm) Bug #564: Perform PAM account checks for all authentications when
UsePAM=yes; ok dtucker
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/auth1.c b/auth1.c
index 7c0100103..d8b5836ba 100644
--- a/auth1.c
+++ b/auth1.c
@@ -290,6 +290,12 @@ do_authloop(Authctxt *authctxt)
authenticated = 0;
#endif
+#ifdef USE_PAM
+ if (options.use_pam && authenticated &&
+ !PRIVSEP(do_pam_account()))
+ authenticated = 0;
+#endif
+
/* Log before sending the reply */
auth_log(authctxt, authenticated, get_authname(type), info);