summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-11-10 18:01:47 +0100
committerAndrew Bartlett <abartlet@samba.org>2016-12-01 05:54:22 +0100
commit4e1b965005d76b3dc57cb7efbf21591a3cf80688 (patch)
tree3cec363dd487be8f5309e4c0ab9b6bc5a9299a38 /lib
parent2628aa5f7e3b055f0f96462a70d96f8e2221960d (diff)
downloadsamba-4e1b965005d76b3dc57cb7efbf21591a3cf80688.tar.gz
ldb:controls: add LDB_CONTROL_RECALCULATE_RDN_OID
This will be used by 'samba-tool dbcheck' to fix the rdn attribute name. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12399 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> (Patch reduced by Andrew Bartlett to only allocate the OID)
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/include/ldb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h
index 7422d46f5ee..ef292302d39 100644
--- a/lib/ldb/include/ldb.h
+++ b/lib/ldb/include/ldb.h
@@ -499,6 +499,13 @@ typedef int (*ldb_qsort_cmp_fn_t) (void *v1, void *v2, void *opaque);
#define LDB_CONTROL_BYPASS_OPERATIONAL_NAME "bypassoperational"
/**
+ OID for recalculate RDN (rdn attribute and 'name') control. This control forces
+ the rdn_name module to the recalculate the rdn and name attributes as if the
+ object was just created.
+*/
+#define LDB_CONTROL_RECALCULATE_RDN_OID "1.3.6.1.4.1.7165.4.3.30"
+
+/**
OID for recalculate SD control. This control force the
dsdb code to recalculate the SD of the object as if the
object was just created.