summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-06-23 18:27:26 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-06-29 13:40:41 +1000
commit077898b15819b28320bd049ad0fdfff34733a04f (patch)
tree607b4070a8f503664bfb00f64cd4017a86b95fbd /source4
parent994506ae2eb7e8e7eb0463fb87b261eaecb04010 (diff)
downloadsamba-077898b15819b28320bd049ad0fdfff34733a04f.tar.gz
samba-077898b15819b28320bd049ad0fdfff34733a04f.tar.bz2
samba-077898b15819b28320bd049ad0fdfff34733a04f.zip
Enhancement of "simple ldap map" with "systemFlags" attribute
Enhance the simple ldap map to support also the "systemFlags" attribute in the correct way.
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/simple_ldap_map.c22
1 files changed, 22 insertions, 0 deletions
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
@@ -372,6 +372,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,
.u = {
@@ -524,6 +535,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,
.u = {