From 7c71370a0f3b23fe699f378f24282987681d7b01 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 13 Sep 2009 11:01:44 +0200 Subject: libds/common/flags: various - Reorders the header file to have the order "userAccountFlags", "groupType", "sAMAccountType" (matches the order in the flag_mapping.c and samldb module) - Fixes the group account flags properly up - Fixes the flags for "domain/forestFunctionality" and "domainControllerFunctionality" up --- libds/common/flag_mapping.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libds/common/flag_mapping.c') diff --git a/libds/common/flag_mapping.c b/libds/common/flag_mapping.c index dc7d80185a..429ccacb49 100644 --- a/libds/common/flag_mapping.c +++ b/libds/common/flag_mapping.c @@ -105,21 +105,24 @@ uint32_t ds_gtype2atype(uint32_t gtype) case GTYPE_SECURITY_BUILTIN_LOCAL_GROUP: atype = ATYPE_SECURITY_LOCAL_GROUP; break; + case GTYPE_SECURITY_GLOBAL_GROUP: + atype = ATYPE_SECURITY_GLOBAL_GROUP; + break; case GTYPE_SECURITY_DOMAIN_LOCAL_GROUP: atype = ATYPE_SECURITY_LOCAL_GROUP; break; - case GTYPE_SECURITY_GLOBAL_GROUP: - atype = ATYPE_SECURITY_GLOBAL_GROUP; + case GTYPE_SECURITY_UNIVERSAL_GROUP: + atype = ATYPE_SECURITY_UNIVERSAL_GROUP; break; case GTYPE_DISTRIBUTION_GLOBAL_GROUP: atype = ATYPE_DISTRIBUTION_GLOBAL_GROUP; break; case GTYPE_DISTRIBUTION_DOMAIN_LOCAL_GROUP: - atype = ATYPE_DISTRIBUTION_UNIVERSAL_GROUP; + atype = ATYPE_DISTRIBUTION_LOCAL_GROUP; break; case GTYPE_DISTRIBUTION_UNIVERSAL_GROUP: - atype = ATYPE_DISTRIBUTION_LOCAL_GROUP; + atype = ATYPE_DISTRIBUTION_UNIVERSAL_GROUP; break; } -- cgit