diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-15 22:29:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-15 22:29:36 +0000 |
commit | 06a50f51845bf639f7abd47cf39638054f255131 (patch) | |
tree | 060384de2c4201787dc806f747199654cbf90dab /source3 | |
parent | 78ac23f7e0f5e12c6b56adce91e356a3963c196f (diff) | |
download | samba-06a50f51845bf639f7abd47cf39638054f255131.tar.gz samba-06a50f51845bf639f7abd47cf39638054f255131.tar.bz2 samba-06a50f51845bf639f7abd47cf39638054f255131.zip |
Patch from "Christoph Zwerschke" <zwerschke@zuv.uni-heidelberg.de> to
map usernames before calling password change.
Jeremy.
(This used to be commit ce2a236dc61d819e083b32556a2d9f827944b91c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 2434fad74a..9e9c5d950e 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1242,6 +1242,18 @@ uint32 _samr_chgpasswd_user(pipes_struct *p, SAMR_Q_CHGPASSWD_USER *q_u, SAMR_R_ DEBUG(5,("samr_chgpasswd_user: user: %s wks: %s\n", user_name, wks)); + /* + * Pass the user through the NT -> unix user mapping + * function. + */ + + (void)map_username(user_name); + + /* + * Do any UNIX username case mangling. + */ + (void)Get_Pwnam( user_name, True); + if (!pass_oem_change(user_name, q_u->lm_newpass.pass, q_u->lm_oldhash.hash, q_u->nt_newpass.pass, q_u->nt_oldhash.hash)) r_u->status = NT_STATUS_WRONG_PASSWORD; |