From 44872096fbf1d7541f34f5b9d5a22029cfd65e38 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 7 Sep 2009 09:00:46 +0200 Subject: s4:simple_ldap_map - "primaryGroupId" Previous patch was incomplete regarding the "primaryGroupId" attribute. Complete it. --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index b6a0ee0c76..248d286ba6 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -340,6 +340,17 @@ static const struct ldb_map_attribute entryuuid_attributes[] = } } }, + { + .local_name = "primaryGroupID", + .type = MAP_CONVERT, + .u = { + .convert = { + .remote_name = "primaryGroupID", + .convert_local = normalise_to_signed32, + .convert_remote = val_copy, + } + } + }, { .local_name = "groupType", .type = MAP_CONVERT, @@ -348,7 +359,7 @@ static const struct ldb_map_attribute entryuuid_attributes[] = .remote_name = "groupType", .convert_local = normalise_to_signed32, .convert_remote = val_copy, - }, + } } }, { @@ -359,7 +370,7 @@ static const struct ldb_map_attribute entryuuid_attributes[] = .remote_name = "userAccountControl", .convert_local = normalise_to_signed32, .convert_remote = val_copy, - }, + } } }, { @@ -370,7 +381,7 @@ static const struct ldb_map_attribute entryuuid_attributes[] = .remote_name = "sAMAccountType", .convert_local = normalise_to_signed32, .convert_remote = val_copy, - }, + } } }, { @@ -381,7 +392,7 @@ static const struct ldb_map_attribute entryuuid_attributes[] = .remote_name = "systemFlags", .convert_local = normalise_to_signed32, .convert_remote = val_copy, - }, + } } }, { -- cgit