diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -306,7 +306,8 @@ do_authloop(Authctxt *authctxt) | |||
306 | authenticated = 0; | 306 | authenticated = 0; |
307 | #endif | 307 | #endif |
308 | #ifdef USE_PAM | 308 | #ifdef USE_PAM |
309 | if (authenticated && !do_pam_account(pw->pw_name, client_user)) | 309 | if (!use_privsep && authenticated && |
310 | !do_pam_account(pw->pw_name, client_user)) | ||
310 | authenticated = 0; | 311 | authenticated = 0; |
311 | #endif | 312 | #endif |
312 | 313 | ||
@@ -381,7 +382,7 @@ do_authentication(void) | |||
381 | use_privsep ? " [net]" : ""); | 382 | use_privsep ? " [net]" : ""); |
382 | 383 | ||
383 | #ifdef USE_PAM | 384 | #ifdef USE_PAM |
384 | start_pam(authctxt->pw == NULL ? "NOUSER" : user); | 385 | PRIVSEP(start_pam(authctxt->pw == NULL ? "NOUSER" : user)); |
385 | #endif | 386 | #endif |
386 | 387 | ||
387 | /* | 388 | /* |