From: Matthias Dieter Wallnöfer Date: Tue, 23 Jun 2009 16:27:26 +0000 (+0200) Subject: Enhancement of "simple ldap map" with "systemFlags" attribute X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=077898b15819b28320bd049ad0fdfff34733a04f Enhancement of "simple ldap map" with "systemFlags" attribute Enhance the simple ldap map to support also the "systemFlags" attribute in the correct way. --- diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 0a6c350a3b0e..fe1de1c7d627 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,