summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-12 14:40:11 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-28 14:51:04 +0200
commitb7050267717d7fba0ee4c6bf375e3cc9d2864717 (patch)
treeeab1ca54d04c5744c63570d54d2fd474bf3f9e26 /source4
parent8feda76d4fb4dac680b13e3234925802fb32e7f1 (diff)
downloadsamba-b7050267717d7fba0ee4c6bf375e3cc9d2864717.tar.gz
samba-b7050267717d7fba0ee4c6bf375e3cc9d2864717.tar.bz2
samba-b7050267717d7fba0ee4c6bf375e3cc9d2864717.zip
s4:dcesrv_samr_SetUserInfo - implement case 18 which allows to reset the user password
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 67098f683e..0443287a45 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -3168,6 +3168,16 @@ static NTSTATUS dcesrv_samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALL
SET_UINT64(msg, info17.acct_expiry, "accountExpires");
break;
+ case 18:
+ status = samr_set_password_buffers(dce_call,
+ a_state->sam_ctx,
+ a_state->account_dn,
+ a_state->domain_state->domain_dn,
+ mem_ctx,
+ r->in.info->info18.lm_pwd_active ? r->in.info->info18.lm_pwd.hash : NULL,
+ r->in.info->info18.nt_pwd_active ? r->in.info->info18.nt_pwd.hash : NULL);
+ break;
+
case 20:
SET_PARAMETERS(msg, info20.parameters, "userParameters");
break;