summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2013-09-18 16:50:34 -0700
committerNadezhda Ivanova <nivanova@symas.com>2013-09-23 18:40:25 -0700
commit93f3aba5e083976a791b982b2064b619800ce110 (patch)
tree20e327c5a25c39758e3a81eaf87f8476dfd75c28 /source4/dsdb/samdb/ldb_modules
parentbc1503a96656f1274aa93ac7cab88401c96cac60 (diff)
downloadsamba-93f3aba5e083976a791b982b2064b619800ce110.tar.gz
samba-93f3aba5e083976a791b982b2064b619800ce110.tar.bz2
samba-93f3aba5e083976a791b982b2064b619800ce110.zip
Add LDB_MAP_RENDROP option
Like LDB_MAP_RENAME, but drop the attribute if it occurs in an Add request. Used for distinguishedName attribute, is read-only and generated but for some bizarre reason AD allows it in an Add request. Signed-off-by: Howard Chu <hyc@symas.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/simple_ldap_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c
index 918c1bd51e..64dd863508 100644
--- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c
+++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c
@@ -362,7 +362,7 @@ static const struct ldb_map_attribute entryuuid_attributes[] =
},
{
.local_name = "distinguishedName",
- .type = LDB_MAP_RENAME,
+ .type = LDB_MAP_RENDROP,
.u = {
.rename = {
.remote_name = "entryDN"