summaryrefslogtreecommitdiff
path: root/source4/dsdb/common/dsdb_dn.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-05 16:57:20 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-12 16:34:03 +1100
commit390ac7d3063fdc64d64ecb498eb0c9b4626e2eb8 (patch)
treee597d136c6471a8028553d4fd087cd9698b27365 /source4/dsdb/common/dsdb_dn.h
parent3abc3e7a3a4e3833c8c08cc21deeaae174887f7f (diff)
downloadsamba-390ac7d3063fdc64d64ecb498eb0c9b4626e2eb8.tar.gz
samba-390ac7d3063fdc64d64ecb498eb0c9b4626e2eb8.tar.bz2
samba-390ac7d3063fdc64d64ecb498eb0c9b4626e2eb8.zip
s4:dsdb Add new dsdb_dn to handle DN+Binary and DN+String
This aims to replace (and is based on) the code in ldb_dn.c. It is however much stricter in the DNs it will accept. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/common/dsdb_dn.h')
-rw-r--r--source4/dsdb/common/dsdb_dn.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/dsdb/common/dsdb_dn.h b/source4/dsdb/common/dsdb_dn.h
new file mode 100644
index 0000000000..55b5c0bd40
--- /dev/null
+++ b/source4/dsdb/common/dsdb_dn.h
@@ -0,0 +1,16 @@
+enum dsdb_dn_format {
+ DSDB_NORMAL_DN,
+ DSDB_BINARY_DN,
+ DSDB_STRING_DN,
+ DSDB_INVALID_DN
+};
+
+struct dsdb_dn {
+ struct ldb_dn *dn;
+ DATA_BLOB extra_part;
+ enum dsdb_dn_format dn_format;
+ const char *oid;
+};
+
+#define DSDB_SYNTAX_BINARY_DN "1.2.840.113556.1.4.903"
+#define DSDB_SYNTAX_STRING_DN "1.2.840.113556.1.4.904"