summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-06 22:22:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:51 -0500
commit63456681daa853174c42eaaa5a8d330d27c18383 (patch)
treef4cb013943239d66130e3736760574013fca534f
parentcfc4946ebf578f6030c8fb44e26b16fede1d0ff7 (diff)
downloadsamba-63456681daa853174c42eaaa5a8d330d27c18383.tar.gz
samba-63456681daa853174c42eaaa5a8d330d27c18383.tar.bz2
samba-63456681daa853174c42eaaa5a8d330d27c18383.zip
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 ff025d451e165383ad7d524e0e8176d987554049)
-rw-r--r--source3/nsswitch/winbindd_pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index 3fcb094198..9f2b6045d2 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -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"