diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 | /* |