diff options
author | Günther Deschner <gd@samba.org> | 2008-01-25 01:00:51 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-25 01:04:30 +0100 |
commit | 92183450f1eedd2892ed8612ccaf97c65098c636 (patch) | |
tree | 6036868abf176579b8bf3b4f1c89e6198258be5b /source3/rpcclient | |
parent | ed8385a177cf45de2970d70f08857b8aa60c046b (diff) | |
download | samba-92183450f1eedd2892ed8612ccaf97c65098c636.tar.gz samba-92183450f1eedd2892ed8612ccaf97c65098c636.tar.bz2 samba-92183450f1eedd2892ed8612ccaf97c65098c636.zip |
Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.
Guenther
(This used to be commit d4a9e46edf7336f673c001c559af96eb0ecf9f6f)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 5b42c6bc0e..1bb13f3fe0 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -1483,10 +1483,11 @@ static NTSTATUS cmd_samr_create_dom_user(struct rpc_pipe_client *cli, /* Create domain user */ acb_info = ACB_NORMAL; - acct_flags = SAMR_GENERIC_READ | SAMR_GENERIC_WRITE | - SAMR_GENERIC_EXECUTE | SAMR_STANDARD_WRITEDAC | - SAMR_STANDARD_DELETE | SAMR_USER_SETPASS | - SAMR_USER_GETATTR | SAMR_USER_SETATTR; + acct_flags = SEC_GENERIC_READ | SEC_GENERIC_WRITE | SEC_GENERIC_EXECUTE | + SEC_STD_WRITE_DAC | SEC_STD_DELETE | + SAMR_USER_ACCESS_SET_PASSWORD | + SAMR_USER_ACCESS_GET_ATTRIBUTES | + SAMR_USER_ACCESS_SET_ATTRIBUTES; result = rpccli_samr_create_dom_user(cli, mem_ctx, &domain_pol, acct_name, acb_info, acct_flags, |