Enhancement of "simple ldap map" with "systemFlags" attribute
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 23 Jun 2009 16:27:26 +0000 (18:27 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jun 2009 03:40:41 +0000 (13:40 +1000)
Enhance the simple ldap map to support also the "systemFlags" attribute in the
correct way.

source4/dsdb/samdb/ldb_modules/simple_ldap_map.c

index 0a6c350a3b0e636f14a7f16e43c2de2c8db0d179..fe1de1c7d62796aaee9837033711b726b1751951 100644 (file)
@@ -371,6 +371,17 @@ static const struct ldb_map_attribute entryuuid_attributes[] =
                         },
                }
        },
+       {
+               .local_name = "systemFlags",
+               .type = MAP_CONVERT,
+               .u = {
+                       .convert = {
+                                .remote_name = "systemFlags",
+                                .convert_local = normalise_to_signed32,
+                                .convert_remote = val_copy,
+                        },
+               }
+       },
        {
                .local_name = "usnChanged",
                .type = MAP_CONVERT,
@@ -523,6 +534,17 @@ static const struct ldb_map_attribute nsuniqueid_attributes[] =
                         },
                }
        },
+       {
+               .local_name = "systemFlags",
+               .type = MAP_CONVERT,
+               .u = {
+                       .convert = {
+                                .remote_name = "systemFlags",
+                                .convert_local = normalise_to_signed32,
+                                .convert_remote = val_copy,
+                        },
+               }
+       },
        {
                .local_name = "usnChanged",
                .type = MAP_CONVERT,