summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/auth2.c b/auth2.c
index 639bf9117..e6ec8ddcd 100644
--- a/auth2.c
+++ b/auth2.c
@@ -213,6 +213,11 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method)
213 !auth_root_allowed(method)) 213 !auth_root_allowed(method))
214 authenticated = 0; 214 authenticated = 0;
215 215
216#ifdef USE_PAM
217 if (options.use_pam && authenticated && !PRIVSEP(do_pam_account()))
218 authenticated = 0;
219#endif
220
216#ifdef _UNICOS 221#ifdef _UNICOS
217 if (authenticated && cray_access_denied(authctxt->user)) { 222 if (authenticated && cray_access_denied(authctxt->user)) {
218 authenticated = 0; 223 authenticated = 0;