summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-07 09:00:46 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-07 09:00:46 +0200
commit44872096fbf1d7541f34f5b9d5a22029cfd65e38 (patch)
treeb86e9918a966c11b29f36ae4a86755fe21840725
parent1d9a95e31028d18c66be8db3ab728aebce54aaf9 (diff)
downloadsamba-44872096fbf1d7541f34f5b9d5a22029cfd65e38.tar.gz
samba-44872096fbf1d7541f34f5b9d5a22029cfd65e38.tar.bz2
samba-44872096fbf1d7541f34f5b9d5a22029cfd65e38.zip
s4:simple_ldap_map - "primaryGroupId"
Previous patch was incomplete regarding the "primaryGroupId" attribute. Complete it.
-rw-r--r--source4/dsdb/samdb/ldb_modules/simple_ldap_map.c19
1 files changed, 15 insertions, 4 deletions
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
@@ -341,6 +341,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,
.u = {
@@ -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,
- },
+ }
}
},
{