summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/auth1.c b/auth1.c
index 7fe363156..6cb0b04b2 100644
--- a/auth1.c
+++ b/auth1.c
@@ -342,11 +342,6 @@ do_authloop(Authctxt *authctxt)
342 !auth_root_allowed(get_authname(type))) 342 !auth_root_allowed(get_authname(type)))
343 authenticated = 0; 343 authenticated = 0;
344#endif 344#endif
345#ifdef USE_PAM
346 if (!use_privsep && authenticated &&
347 !do_pam_account(pw->pw_name, client_user))
348 authenticated = 0;
349#endif
350 345
351 /* Log before sending the reply */ 346 /* Log before sending the reply */
352 auth_log(authctxt, authenticated, get_authname(type), info); 347 auth_log(authctxt, authenticated, get_authname(type), info);
@@ -413,7 +408,8 @@ do_authentication(void)
413 use_privsep ? " [net]" : ""); 408 use_privsep ? " [net]" : "");
414 409
415#ifdef USE_PAM 410#ifdef USE_PAM
416 PRIVSEP(start_pam(user)); 411 if (options.use_pam)
412 PRIVSEP(start_pam(user));
417#endif 413#endif
418 414
419 /* 415 /*