mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r22730: Fix password changes via pam_winbindd when using "winbind normalize names"
and the username has been munged. Make sure to munge it back before
performing the change_password() request.
(This used to be commit ff025d451e
)
This commit is contained in:
parent
cfc4946ebf
commit
63456681da
@ -1976,6 +1976,8 @@ void winbindd_pam_chauthtok(struct winbindd_cli_state *state)
|
||||
|
||||
/* Setup crap */
|
||||
|
||||
ws_name_return( state->request.data.auth.user, WB_REPLACE_CHAR );
|
||||
|
||||
if (!canonicalize_username(state->request.data.chauthtok.user, domain, user)) {
|
||||
set_auth_errors(&state->response, NT_STATUS_NO_SUCH_USER);
|
||||
DEBUG(5, ("winbindd_pam_chauthtok: canonicalize_username %s failed with %s"
|
||||
|
Loading…
Reference in New Issue
Block a user