mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s3-nsswitch: Fix Bug #6238. Make sure logoff is bla bla.
Fix inspired by patch from Rashid N. Achilov <citycat4@ngs.ru>. Guenther
This commit is contained in:
parent
621d40332a
commit
09265bcff5
@ -2318,6 +2318,8 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags,
|
||||
const char *user;
|
||||
wbcErr wbc_status = WBC_ERR_SUCCESS;
|
||||
|
||||
ZERO_STRUCT(logoff);
|
||||
|
||||
retval = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx);
|
||||
if (retval) {
|
||||
goto out;
|
||||
@ -2365,8 +2367,6 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags,
|
||||
wbc_flags = WBFLAG_PAM_KRB5 |
|
||||
WBFLAG_PAM_CONTACT_TRUSTDOM;
|
||||
|
||||
ZERO_STRUCT(logoff);
|
||||
|
||||
logoff.username = user;
|
||||
|
||||
if (ccname) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user