mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r18710: Prevent that our offline cache can get outdated after a password change.
Guenther
(This used to be commit 8006cf962b
)
This commit is contained in:
parent
2fb8589862
commit
c4046b0e88
@ -2098,7 +2098,14 @@ enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domai
|
||||
(unsigned long)state->pid,
|
||||
state->request.data.chng_pswd_auth_crap.domain,
|
||||
state->request.data.chng_pswd_auth_crap.user));
|
||||
|
||||
|
||||
if (lp_winbind_offline_logon()) {
|
||||
DEBUG(0,("Refusing password change as winbind offline logons are enabled. "));
|
||||
DEBUGADD(0,("Changing passwords here would risk inconsistent logons\n"));
|
||||
result = NT_STATUS_ACCESS_DENIED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (*state->request.data.chng_pswd_auth_crap.domain) {
|
||||
fstrcpy(domain,state->request.data.chng_pswd_auth_crap.domain);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user