diff options
author | Damien Miller <djm@mindrot.org> | 2003-08-25 13:08:49 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-08-25 13:08:49 +1000 |
commit | 1f499fd3688d034daf787859044ede73767b6141 (patch) | |
tree | 0fec594fff3ac5fb6cc4faab19924e047db10207 /auth1.c | |
parent | e41bba584737f028579961ddf6669b6a768e47e7 (diff) |
- (djm) Bug #564: Perform PAM account checks for all authentications when
UsePAM=yes; ok dtucker
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -290,6 +290,12 @@ do_authloop(Authctxt *authctxt) | |||
290 | authenticated = 0; | 290 | authenticated = 0; |
291 | #endif | 291 | #endif |
292 | 292 | ||
293 | #ifdef USE_PAM | ||
294 | if (options.use_pam && authenticated && | ||
295 | !PRIVSEP(do_pam_account())) | ||
296 | authenticated = 0; | ||
297 | #endif | ||
298 | |||
293 | /* Log before sending the reply */ | 299 | /* Log before sending the reply */ |
294 | auth_log(authctxt, authenticated, get_authname(type), info); | 300 | auth_log(authctxt, authenticated, get_authname(type), info); |
295 | 301 | ||