summaryrefslogtreecommitdiff
path: root/lib/ldb/ldb_map/ldb_map.h
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 /lib/ldb/ldb_map/ldb_map.h
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 'lib/ldb/ldb_map/ldb_map.h')
-rw-r--r--lib/ldb/ldb_map/ldb_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ldb/ldb_map/ldb_map.h b/lib/ldb/ldb_map/ldb_map.h
index 5db3e02a08..46ef3cca45 100644
--- a/lib/ldb/ldb_map/ldb_map.h
+++ b/lib/ldb/ldb_map/ldb_map.h
@@ -63,9 +63,10 @@ struct ldb_map_attribute {
LDB_MAP_KEEP, /* Keep as is. Same name locally and remotely. */
LDB_MAP_RENAME, /* Simply rename the attribute. Name changes, data is the same */
LDB_MAP_CONVERT, /* Rename + convert data */
- LDB_MAP_GENERATE /* Use generate function for generating new name/data.
+ LDB_MAP_GENERATE, /* Use generate function for generating new name/data.
Used for generating attributes based on
multiple remote attributes. */
+ LDB_MAP_RENDROP /* Rename the attribute. Strip from Add requests. */
} type;
/* if set, will be called for search expressions that contain this attribute */