From: Gerald Carter Date: Sun, 6 May 2007 22:22:47 +0000 (+0000) Subject: r22730: Fix password changes via pam_winbindd when using "winbind normalize names" X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~518 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff025d451e165383ad7d524e0e8176d987554049;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c index 3fcb0941986..9f2b6045d26 100644 --- a/source/nsswitch/winbindd_pam.c +++ b/source/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"