summaryrefslogtreecommitdiff
path: root/source/utils/net_rpc_join.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-23 13:54:02 -0800
committerJeremy Allison <jra@samba.org>2008-01-23 13:54:02 -0800
commit7d94f97947b7edfcf3ec52f0125e4593d6d54c05 (patch)
treea4c679e5dcf03a6501781a474ea7619d7a2fe35a /source/utils/net_rpc_join.c
parent7101026061c470ed962267b43ac0aa67cc761a64 (diff)
downloadsamba-7d94f97947b7edfcf3ec52f0125e4593d6d54c05.tar.gz
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user(). Jerry please test. Jeremy.
Diffstat (limited to 'source/utils/net_rpc_join.c')
-rw-r--r--source/utils/net_rpc_join.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/utils/net_rpc_join.c b/source/utils/net_rpc_join.c
index 6e37f3c84c4..de8ea743b4a 100644
--- a/source/utils/net_rpc_join.c
+++ b/source/utils/net_rpc_join.c
@@ -160,6 +160,7 @@ int net_rpc_join_newstyle(int argc, const char **argv)
uint32 flags = 0x3e8;
char *acct_name;
const char *const_acct_name;
+ uint32 acct_flags=0;
/* check what type of join */
if (argc >= 0) {
@@ -249,9 +250,14 @@ int net_rpc_join_newstyle(int argc, const char **argv)
strlower_m(acct_name);
const_acct_name = acct_name;
+ 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;
+ DEBUG(10, ("Creating account with flags: %d\n",acct_flags));
result = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx, &domain_pol,
acct_name, acb_info,
- 0xe005000b, &user_pol,
+ acct_flags, &user_pol,
&user_rid);
if (!NT_STATUS_IS_OK(result) &&