summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-15 13:36:04 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-09-24 09:25:42 +1000
commit4492d0a6319c4886f508b95a0fbff970c45c682b (patch)
tree15d335d74e186c00ce4533da49d5268c4f127304
parentf45848e33afecc7b0494b554af48a9e8107cb4cf (diff)
downloadsamba-4492d0a6319c4886f508b95a0fbff970c45c682b.tar.gz
samba-4492d0a6319c4886f508b95a0fbff970c45c682b.tar.bz2
samba-4492d0a6319c4886f508b95a0fbff970c45c682b.zip
libds:flag_mapping.c - support also the default read-only DC primary group
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--libds/common/flag_mapping.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libds/common/flag_mapping.c b/libds/common/flag_mapping.c
index dfe619971f..cf63327776 100644
--- a/libds/common/flag_mapping.c
+++ b/libds/common/flag_mapping.c
@@ -153,7 +153,9 @@ uint32_t ds_uf2prim_group_rid(uint32_t uf)
{
uint32_t prim_group_rid = DOMAIN_RID_USERS;
- if (uf & UF_SERVER_TRUST_ACCOUNT) prim_group_rid = DOMAIN_RID_DCS;
+ if ((uf & UF_PARTIAL_SECRETS_ACCOUNT)
+ && (uf & UF_WORKSTATION_TRUST_ACCOUNT)) prim_group_rid = DOMAIN_RID_READONLY_DCS;
+ else if (uf & UF_SERVER_TRUST_ACCOUNT) prim_group_rid = DOMAIN_RID_DCS;
else if (uf & UF_WORKSTATION_TRUST_ACCOUNT) prim_group_rid = DOMAIN_RID_DOMAIN_MEMBERS;
return prim_group_rid;