]> andersk Git - openssh.git/blobdiff - auth1.c
- (djm) Add new UsePAM configuration directive to allow runtime control
[openssh.git] / auth1.c
diff --git a/auth1.c b/auth1.c
index 7fe363156e8c3c3d8f7c5d968b9a47bbb02c9976..6cb0b04b2ff9203d6720a5a3d1f7b8bf63eacef5 100644 (file)
--- a/auth1.c
+++ b/auth1.c
@@ -342,11 +342,6 @@ do_authloop(Authctxt *authctxt)
                    !auth_root_allowed(get_authname(type)))
                        authenticated = 0;
 #endif
-#ifdef USE_PAM
-               if (!use_privsep && authenticated && 
-                   !do_pam_account(pw->pw_name, client_user))
-                       authenticated = 0;
-#endif
 
                /* Log before sending the reply */
                auth_log(authctxt, authenticated, get_authname(type), info);
@@ -413,7 +408,8 @@ do_authentication(void)
            use_privsep ? " [net]" : "");
 
 #ifdef USE_PAM
-       PRIVSEP(start_pam(user));
+       if (options.use_pam)
+               PRIVSEP(start_pam(user));
 #endif
 
        /*
This page took 0.05505 seconds and 4 git commands to generate.