summaryrefslogtreecommitdiff
path: root/source4/dsdb/common/util_samr.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 21:19:27 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 21:19:27 +0200
commit7e9e35db4126f953e8a2579d992c63b274011119 (patch)
tree86f94adf9cfb1de4058c4f67f71d84a8cfc04519 /source4/dsdb/common/util_samr.c
parent4a2941535d8a34c533ddbadccd4df9aec4539639 (diff)
downloadsamba-7e9e35db4126f953e8a2579d992c63b274011119.tar.gz
samba-7e9e35db4126f953e8a2579d992c63b274011119.tar.bz2
samba-7e9e35db4126f953e8a2579d992c63b274011119.zip
s4:util_samr.c - also here we've now the default primaryGroupID detection working
Diffstat (limited to 'source4/dsdb/common/util_samr.c')
-rw-r--r--source4/dsdb/common/util_samr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/dsdb/common/util_samr.c b/source4/dsdb/common/util_samr.c
index 6a14f0a4f4..02f31bf305 100644
--- a/source4/dsdb/common/util_samr.c
+++ b/source4/dsdb/common/util_samr.c
@@ -115,8 +115,6 @@ NTSTATUS dsdb_add_user(struct ldb_context *ldb,
cn_name[cn_name_len - 1] = '\0';
container = "CN=Computers";
obj_class = "computer";
- samdb_msg_add_int(ldb, tmp_ctx, msg,
- "primaryGroupID", DOMAIN_RID_DOMAIN_MEMBERS);
} else if (acct_flags == ACB_SVRTRUST) {
if (cn_name[cn_name_len - 1] != '$') {
@@ -126,8 +124,7 @@ NTSTATUS dsdb_add_user(struct ldb_context *ldb,
cn_name[cn_name_len - 1] = '\0';
container = "OU=Domain Controllers";
obj_class = "computer";
- samdb_msg_add_int(ldb, tmp_ctx, msg,
- "primaryGroupID", DOMAIN_RID_DCS);
+
} else {
ldb_transaction_cancel(ldb);
talloc_free(tmp_ctx);