From 4492d0a6319c4886f508b95a0fbff970c45c682b Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 15 Sep 2010 13:36:04 +0200 Subject: libds:flag_mapping.c - support also the default read-only DC primary group Signed-off-by: Andrew Bartlett --- libds/common/flag_mapping.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libds/common') 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; -- cgit