From 93f3aba5e083976a791b982b2064b619800ce110 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 18 Sep 2013 16:50:34 -0700 Subject: 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 Reviewed-by: Andrew Bartlett Reviewed-by: Nadezhda Ivanova --- lib/ldb/ldb_map/ldb_map.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ldb/ldb_map/ldb_map.h') 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 */ -- cgit