diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-06-23 09:17:54 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-06-23 09:17:54 +1000 |
commit | a8c73d3b8c471aaeca90e8d82e28014608bf2707 (patch) | |
tree | cf6f13652f88125b972f3078d906e1edc0357a31 | |
parent | b09b677166eb973948f189184e6ae4f60dafb2b9 (diff) |
- (dtucker) [auth1.c] Ensure do_pam_account is called for Protocol 1
connections with empty passwords. Patch from davidwu at nbttech.com,
ok djm@
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | auth1.c | 9 |
2 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20040623 | ||
2 | - (dtucker) [auth1.c] Ensure do_pam_account is called for Protocol 1 | ||
3 | connections with empty passwords. Patch from davidwu at nbttech.com, | ||
4 | ok djm@ | ||
5 | |||
1 | 20040622 | 6 | 20040622 |
2 | - (bal) [auth-passwd.c auth1.c] Clean up unused variables. | 7 | - (bal) [auth-passwd.c auth1.c] Clean up unused variables. |
3 | - (dtucker) OpenBSD CVS Sync | 8 | - (dtucker) OpenBSD CVS Sync |
@@ -1369,4 +1374,4 @@ | |||
1369 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 1374 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
1370 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 1375 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
1371 | 1376 | ||
1372 | $Id: ChangeLog,v 1.3432 2004/06/22 05:06:46 dtucker Exp $ | 1377 | $Id: ChangeLog,v 1.3433 2004/06/22 23:17:54 dtucker Exp $ |
@@ -79,8 +79,13 @@ do_authloop(Authctxt *authctxt) | |||
79 | (!options.kerberos_authentication || options.kerberos_or_local_passwd) && | 79 | (!options.kerberos_authentication || options.kerberos_or_local_passwd) && |
80 | #endif | 80 | #endif |
81 | PRIVSEP(auth_password(authctxt, ""))) { | 81 | PRIVSEP(auth_password(authctxt, ""))) { |
82 | auth_log(authctxt, 1, "without authentication", ""); | 82 | #ifdef USE_PAM |
83 | return; | 83 | if (options.use_pam && (PRIVSEP(do_pam_account()))) |
84 | #endif | ||
85 | { | ||
86 | auth_log(authctxt, 1, "without authentication", ""); | ||
87 | return; | ||
88 | } | ||
84 | } | 89 | } |
85 | 90 | ||
86 | /* Indicate that authentication is needed. */ | 91 | /* Indicate that authentication is needed. */ |