From 077898b15819b28320bd049ad0fdfff34733a04f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 23 Jun 2009 18:27:26 +0200 Subject: [PATCH] Enhancement of "simple ldap map" with "systemFlags" attribute Enhance the simple ldap map to support also the "systemFlags" attribute in the correct way. --- .../dsdb/samdb/ldb_modules/simple_ldap_map.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 0a6c350a3b0..fe1de1c7d62 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -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, -- 2.34.1