summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-21 19:26:59 -0700
committerAndrew Bartlett <abartlet@samba.org>2009-09-21 20:50:26 -0700
commit399c7160d56866725d8931a2f816de3b6a995704 (patch)
tree8eaa3866ac9eea306522c8b23ff6d80e0ba970a3 /source4/lib/ldb/include
parent9e85192e6415fbaacf394330f6e61759190485ad (diff)
downloadsamba-399c7160d56866725d8931a2f816de3b6a995704.tar.gz
samba-399c7160d56866725d8931a2f816de3b6a995704.tar.bz2
samba-399c7160d56866725d8931a2f816de3b6a995704.zip
s4:ldb Add 'single-value' support to LDB.
This is currently only triggered via Samba4's schema code.
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 0378697f4b..fa531b26f2 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -392,6 +392,11 @@ const struct ldb_dn_extended_syntax *ldb_dn_extended_syntax_by_name(struct ldb_c
*/
#define LDB_ATTR_FLAG_UNIQUE_INDEX (1<<3)
+/*
+ when this is set, attempts to create two attribute values for this attribute on a single DN will return LDB_ERR_CONSTRAINT_VIOLATION
+ */
+#define LDB_ATTR_FLAG_SINGLE_VALUE (1<<4)
+
/**
LDAP attribute syntax for a DN