s4-dsdb Add ability to force a particular SID in the upgrade case
[idra/samba.git] / source4 / rpc_server / samr / dcesrv_samr.c
index 32aafcd23faa88660c275396b7f69117cb92ee62..7d062ffff411a66286fdfb4e2901ae830761c6e3 100644 (file)
@@ -1205,7 +1205,8 @@ static NTSTATUS dcesrv_samr_CreateUser2(struct dcesrv_call_state *dce_call, TALL
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       status = dsdb_add_user(d_state->sam_ctx, mem_ctx, account_name, r->in.acct_flags, &sid, &dn);
+       status = dsdb_add_user(d_state->sam_ctx, mem_ctx, account_name, r->in.acct_flags, NULL,
+                              &sid, &dn);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }