From 077898b15819b28320bd049ad0fdfff34733a04f Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 23 Jun 2009 18:27:26 +0200 Subject: Enhancement of "simple ldap map" with "systemFlags" attribute Enhance the simple ldap map to support also the "systemFlags" attribute in the correct way. --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 0a6c350a3b..fe1de1c7d6 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, -- cgit