summaryrefslogtreecommitdiff
path: root/source3/libnet
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
commita0186fb78d05aa997b114eee6afabaf138540ab8 (patch)
tree0b0ed3842165a0b859858325821e95380b440209 /source3/libnet
parenta925a53f61ebdc6b4386b7c0853f2f87cbe2e166 (diff)
downloadsamba-a0186fb78d05aa997b114eee6afabaf138540ab8.tar.gz
samba-a0186fb78d05aa997b114eee6afabaf138540ab8.tar.bz2
samba-a0186fb78d05aa997b114eee6afabaf138540ab8.zip
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user(). Jerry please test. Jeremy. (This used to be commit 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index a9978ba4b8..538cca7994 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -684,10 +684,15 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
const_acct_name = acct_name;
if (r->in.join_flags & WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE) {
+ uint32 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;
+
status = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx,
&domain_pol,
acct_name, ACB_WSTRUST,
- 0xe005000b, &user_pol,
+ acct_flags, &user_pol,
&user_rid);
if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
if (!(r->in.join_flags &