summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 22:24:42 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 22:25:37 +0200
commit0939ba4488c4c4e59ae10ed0b99b3e237c7f9a84 (patch)
tree7cd3bff77a3a0a9f0b8413f2f44f31c67ff4f5ac /source4/dsdb
parenteaa55b41239eadd302d983879217a0f391ea701b (diff)
downloadsamba-0939ba4488c4c4e59ae10ed0b99b3e237c7f9a84.tar.gz
samba-0939ba4488c4c4e59ae10ed0b99b3e237c7f9a84.tar.bz2
samba-0939ba4488c4c4e59ae10ed0b99b3e237c7f9a84.zip
Revert "s4:util_samr.c - also here we've now the default primaryGroupID detection working"
This reverts commit 7e9e35db4126f953e8a2579d992c63b274011119. Sorry, the logic is working differently here. We do still need this.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util_samr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/common/util_samr.c b/source4/dsdb/common/util_samr.c
index 02f31bf305..3a6be10a88 100644
--- a/source4/dsdb/common/util_samr.c
+++ b/source4/dsdb/common/util_samr.c
@@ -115,6 +115,8 @@ NTSTATUS dsdb_add_user(struct ldb_context *ldb,
cn_name[cn_name_len - 1] = '\0';
container = "CN=Computers";
obj_class = "computer";
+ samdb_msg_add_uint(ldb, tmp_ctx, msg,
+ "primaryGroupID", DOMAIN_RID_DOMAIN_MEMBERS);
} else if (acct_flags == ACB_SVRTRUST) {
if (cn_name[cn_name_len - 1] != '$') {
@@ -124,7 +126,8 @@ 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_uint(ldb, tmp_ctx, msg,
+ "primaryGroupID", DOMAIN_RID_DCS);
} else {
ldb_transaction_cancel(ldb);
talloc_free(tmp_ctx);