summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-10-20 02:26:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:01:57 -0500
commit8050be6ea343221da9e8866d71b66103ba7fb122 (patch)
tree0321cc80a8b9fc88037815c3b4c1d507b92dcc42
parentd0d86b53483f1455fa41ed457502d1452be336fb (diff)
downloadsamba-8050be6ea343221da9e8866d71b66103ba7fb122.tar.gz
samba-8050be6ea343221da9e8866d71b66103ba7fb122.tar.bz2
samba-8050be6ea343221da9e8866d71b66103ba7fb122.zip
r3080: Make the Samba4 SAMR server pass the new, nasty torture test (now that
SAMR_FIELD_PASSWORD has been split up). Andrew Bartlett (This used to be commit 5f2295a5fb422ad028e67b240e55206acefb48bd)
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 8b72d0dc52..00513cd0e6 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -1721,6 +1721,13 @@ static NTSTATUS samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX
a_state->domain_state->domain_dn,
mem_ctx, msg,
&r->in.info->info23.password);
+ } else IFSET(SAMR_FIELD_PASSWORD2) {
+ status = samr_set_password(dce_call,
+ a_state->sam_ctx,
+ a_state->account_dn,
+ a_state->domain_state->domain_dn,
+ mem_ctx, msg,
+ &r->in.info->info23.password);
}
#undef IFSET
break;
@@ -1766,6 +1773,13 @@ static NTSTATUS samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX
a_state->domain_state->domain_dn,
mem_ctx, msg,
&r->in.info->info25.password);
+ } else IFSET(SAMR_FIELD_PASSWORD2) {
+ status = samr_set_password_ex(dce_call,
+ a_state->sam_ctx,
+ a_state->account_dn,
+ a_state->domain_state->domain_dn,
+ mem_ctx, msg,
+ &r->in.info->info25.password);
}
#undef IFSET
break;