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 | ce2a236dc61d819e083b32556a2d9f827944b91c (patch) | |
tree | 22edc04e4e5219c16b3c1e8f0781a30cb279dca7 /source/rpc_server | |
parent | 4bb63ba615c735a298a6cbda2c87242695104978 (diff) | |
download | samba-ce2a236dc61d819e083b32556a2d9f827944b91c.tar.gz samba-ce2a236dc61d819e083b32556a2d9f827944b91c.tar.xz samba-ce2a236dc61d819e083b32556a2d9f827944b91c.zip |
Patch from "Christoph Zwerschke" <zwerschke@zuv.uni-heidelberg.de> to
map usernames before calling password change.
Jeremy.
Diffstat (limited to 'source/rpc_server')
-rw-r--r-- | source/rpc_server/srv_samr_nt.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c index 2434fad74ad..9e9c5d950e3 100644 --- a/source/rpc_server/srv_samr_nt.c +++ b/source/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; |