s4:simple_ldap_map - "primaryGroupId"
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 7 Sep 2009 07:00:46 +0000 (09:00 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 7 Sep 2009 07:00:46 +0000 (09:00 +0200)
Previous patch was incomplete regarding the "primaryGroupId" attribute. Complete it.

source4/dsdb/samdb/ldb_modules/simple_ldap_map.c

index b6a0ee0c76854f2126f76083b01d8821515c03aa..248d286ba6a2a40c225dd23909603fa6a75025f2 100644 (file)
@@ -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,
-                        },
+                        }
                }
        },
        {