diff options
author | Günther Deschner <gd@samba.org> | 2007-12-11 12:28:10 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-12-11 15:26:09 +0100 |
commit | 0439fdd777fd2d500a33b912633dced3004ca75e (patch) | |
tree | fd1ae2db7456b1fa1d5e941e9083c13815d4e57d /source3 | |
parent | 35608af51d4f01c5fe4ed1d91c9261dcaa49f4af (diff) | |
download | samba-0439fdd777fd2d500a33b912633dced3004ca75e.tar.gz samba-0439fdd777fd2d500a33b912633dced3004ca75e.tar.bz2 samba-0439fdd777fd2d500a33b912633dced3004ca75e.zip |
Replace "unknown" with access_mask when calling samr_CreateUser2().
Guenther
(This used to be commit cfc6e7a2e657ee55364b739d9fe0093e4f7c8b27)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_samr.c | 4 | ||||
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 6 | ||||
-rw-r--r-- | source3/utils/net_rpc.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 8eaf20aa1e..b3168966b3 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -1642,7 +1642,7 @@ NTSTATUS rpccli_samr_lookup_names(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c NTSTATUS rpccli_samr_create_dom_user(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, POLICY_HND *domain_pol, const char *acct_name, - uint32 acb_info, uint32 unknown, + uint32 acb_info, uint32 access_mask, POLICY_HND *user_pol, uint32 *rid) { prs_struct qbuf, rbuf; @@ -1657,7 +1657,7 @@ NTSTATUS rpccli_samr_create_dom_user(struct rpc_pipe_client *cli, TALLOC_CTX *me /* Marshall data and send request */ - init_samr_q_create_user(&q, domain_pol, acct_name, acb_info, unknown); + init_samr_q_create_user(&q, domain_pol, acct_name, acb_info, access_mask); CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_CREATE_USER, q, r, diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 931baf3534..6a3c92a16a 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -1449,7 +1449,7 @@ static NTSTATUS cmd_samr_create_dom_user(struct rpc_pipe_client *cli, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; const char *acct_name; uint32 acb_info; - uint32 unknown, user_rid; + uint32 user_rid; uint32 access_mask = MAXIMUM_ALLOWED_ACCESS; if ((argc < 2) || (argc > 3)) { @@ -1482,10 +1482,10 @@ static NTSTATUS cmd_samr_create_dom_user(struct rpc_pipe_client *cli, /* Create domain user */ acb_info = ACB_NORMAL; - unknown = 0xe005000b; /* No idea what this is - a permission mask? */ + access_mask = 0xe005000b; result = rpccli_samr_create_dom_user(cli, mem_ctx, &domain_pol, - acct_name, acb_info, unknown, + acct_name, acb_info, access_mask, &user_pol, &user_rid); if (!NT_STATUS_IS_OK(result)) diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 3f78d6ced8..4db09676d8 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -587,7 +587,7 @@ static NTSTATUS rpc_user_add_internals(const DOM_SID *domain_sid, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; const char *acct_name; uint32 acb_info; - uint32 unknown, user_rid; + uint32 access_mask, user_rid; if (argc < 1) { d_printf("User must be specified\n"); @@ -617,10 +617,10 @@ static NTSTATUS rpc_user_add_internals(const DOM_SID *domain_sid, /* Create domain user */ acb_info = ACB_NORMAL; - unknown = 0xe005000b; /* No idea what this is - a permission mask? */ + access_mask = 0xe005000b; result = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx, &domain_pol, - acct_name, acb_info, unknown, + acct_name, acb_info, access_mask, &user_pol, &user_rid); if (!NT_STATUS_IS_OK(result)) { goto done; |