From 8050be6ea343221da9e8866d71b66103ba7fb122 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 20 Oct 2004 02:26:59 +0000 Subject: 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) --- source4/rpc_server/samr/dcesrv_samr.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source4/rpc_server/samr') 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; -- cgit