summaryrefslogtreecommitdiff
path: root/lib/ldb/include
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-05-15 10:14:55 -0700
committerMatthieu Patou <mat@matws.net>2012-06-22 23:22:02 -0700
commit9ebb081ccec0587736920e85a9de624e079836e5 (patch)
tree31e4aba0fc0ccd6992f0cb47b57cb0b4057df89f /lib/ldb/include
parentd7aa7e8ef0db7da07785994e3be7c3cf00289f4d (diff)
downloadsamba-9ebb081ccec0587736920e85a9de624e079836e5.tar.gz
samba-9ebb081ccec0587736920e85a9de624e079836e5.tar.bz2
samba-9ebb081ccec0587736920e85a9de624e079836e5.zip
ldb: add the VERIFY_NAME control
Diffstat (limited to 'lib/ldb/include')
-rw-r--r--lib/ldb/include/ldb.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h
index ae34019216..d3a20c5ff8 100644
--- a/lib/ldb/include/ldb.h
+++ b/lib/ldb/include/ldb.h
@@ -708,6 +708,15 @@ typedef int (*ldb_qsort_cmp_fn_t) (void *v1, void *v2, void *opaque);
#define LDB_CONTROL_RELAX_OID "1.3.6.1.4.1.4203.666.5.12"
#define LDB_CONTROL_RELAX_NAME "relax"
+/**
+ OID for the allowing some kind of relax check for attributes with DNs
+
+
+ \sa 3.1.1.3.4.1.16 in [MS-ADTS].pdf
+*/
+#define LDB_CONTROL_VERIFY_NAME_OID "1.2.840.113556.1.4.1338"
+#define LDB_CONTROL_VERIFY_NAME_NAME "verify_name"
+
/* Extended operations */
/**
@@ -843,6 +852,12 @@ struct ldb_vlv_resp_control {
char *contextId;
};
+struct ldb_verify_name_control {
+ int flags;
+ size_t gc_len;
+ char *gc;
+};
+
struct ldb_control {
const char *oid;
int critical;