aboutsummaryrefslogtreecommitdiffstats
path: root/libds/common/flag_mapping.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-13 11:01:44 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-17 12:02:58 +0200
commit7c71370a0f3b23fe699f378f24282987681d7b01 (patch)
treea6fd1e9d4c69caeb8263da06ef5fd16bb45c02c7 /libds/common/flag_mapping.c
parentf6a29f7dd368acf3f053fc4e1330c7314fc3e41f (diff)
downloadsamba-7c71370a0f3b23fe699f378f24282987681d7b01.tar.gz
samba-7c71370a0f3b23fe699f378f24282987681d7b01.tar.xz
samba-7c71370a0f3b23fe699f378f24282987681d7b01.zip
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
Diffstat (limited to 'libds/common/flag_mapping.c')
-rw-r--r--libds/common/flag_mapping.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libds/common/flag_mapping.c b/libds/common/flag_mapping.c
index dc7d80185a2..429ccacb490 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;
}