mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
- (dtucker) [session.c] Call PAM cleanup functions for unauthenticated
connections too. Based on a patch from Sandro Wefel, with & ok djm@
This commit is contained in:
parent
fc5d188b34
commit
9142e1c66d
@ -1,3 +1,7 @@
|
|||||||
|
20070816
|
||||||
|
- (dtucker) [session.c] Call PAM cleanup functions for unauthenticated
|
||||||
|
connections too. Based on a patch from Sandro Wefel, with & ok djm@
|
||||||
|
|
||||||
20070815
|
20070815
|
||||||
- (dtucker) OpenBSD CVS Sync
|
- (dtucker) OpenBSD CVS Sync
|
||||||
- markus@cvs.openbsd.org 2007/08/15 08:14:46
|
- markus@cvs.openbsd.org 2007/08/15 08:14:46
|
||||||
@ -3169,4 +3173,4 @@
|
|||||||
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
||||||
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4730 2007/08/15 12:20:22 dtucker Exp $
|
$Id: ChangeLog,v 1.4731 2007/08/16 13:28:04 dtucker Exp $
|
||||||
|
20
session.c
20
session.c
@ -2478,8 +2478,19 @@ do_cleanup(Authctxt *authctxt)
|
|||||||
return;
|
return;
|
||||||
called = 1;
|
called = 1;
|
||||||
|
|
||||||
if (authctxt == NULL || !authctxt->authenticated)
|
if (authctxt == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef USE_PAM
|
||||||
|
if (options.use_pam) {
|
||||||
|
sshpam_cleanup();
|
||||||
|
sshpam_thread_cleanup();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (!authctxt->authenticated)
|
||||||
|
return;
|
||||||
|
|
||||||
#ifdef KRB5
|
#ifdef KRB5
|
||||||
if (options.kerberos_ticket_cleanup &&
|
if (options.kerberos_ticket_cleanup &&
|
||||||
authctxt->krb5_ctx)
|
authctxt->krb5_ctx)
|
||||||
@ -2491,13 +2502,6 @@ do_cleanup(Authctxt *authctxt)
|
|||||||
ssh_gssapi_cleanup_creds();
|
ssh_gssapi_cleanup_creds();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_PAM
|
|
||||||
if (options.use_pam) {
|
|
||||||
sshpam_cleanup();
|
|
||||||
sshpam_thread_cleanup();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* remove agent socket */
|
/* remove agent socket */
|
||||||
auth_sock_cleanup_proc(authctxt->pw);
|
auth_sock_cleanup_proc(authctxt->pw);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user