commit | 1f499fd3688d034daf787859044ede73767b6141 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Mon Aug 25 13:08:49 2003 +1000 |
committer | Damien Miller <djm@mindrot.org> | Mon Aug 25 13:08:49 2003 +1000 |
tree | 0fec594fff3ac5fb6cc4faab19924e047db10207 | |
parent | e41bba584737f028579961ddf6669b6a768e47e7 [diff] [blame] |
- (djm) Bug #564: Perform PAM account checks for all authentications when UsePAM=yes; ok dtucker
diff --git a/auth2.c b/auth2.c index 639bf91..e6ec8dd 100644 --- a/auth2.c +++ b/auth2.c
@@ -213,6 +213,11 @@ !auth_root_allowed(method)) authenticated = 0; +#ifdef USE_PAM + if (options.use_pam && authenticated && !PRIVSEP(do_pam_account())) + authenticated = 0; +#endif + #ifdef _UNICOS if (authenticated && cray_access_denied(authctxt->user)) { authenticated = 0;