diff options
author | dtucker <dtucker> | 2004-06-22 23:17:54 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2004-06-22 23:17:54 +0000 |
commit | 6b4f6e20c803c2a4aed0e4d8fce67565bfa5787b (patch) | |
tree | 7a1232e378a0e905cd4fc54a13db74a54fb59ad2 /auth1.c | |
parent | 4beed27c03a7e862f843d713043cacedbc48d382 (diff) | |
download | openssh-6b4f6e20c803c2a4aed0e4d8fce67565bfa5787b.tar.gz |
- (dtucker) [auth1.c] Ensure do_pam_account is called for Protocol 1
connections with empty passwords. Patch from davidwu at nbttech.com,
ok djm@
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -79,8 +79,13 @@ do_authloop(Authctxt *authctxt) (!options.kerberos_authentication || options.kerberos_or_local_passwd) && #endif PRIVSEP(auth_password(authctxt, ""))) { - auth_log(authctxt, 1, "without authentication", ""); - return; +#ifdef USE_PAM + if (options.use_pam && (PRIVSEP(do_pam_account()))) +#endif + { + auth_log(authctxt, 1, "without authentication", ""); + return; + } } /* Indicate that authentication is needed. */ |