summaryrefslogtreecommitdiff
path: root/source4/dsdb
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/dsdb
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/dsdb')
-rw-r--r--source4/dsdb/schema/schema_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index fa1953a14f..8bb54f47f4 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -653,6 +653,10 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
if (dsdb_schema_unique_attribute(a->name)) {
a->flags |= LDB_ATTR_FLAG_UNIQUE_INDEX;
}
+ if (attr->isSingleValued) {
+ a->flags |= LDB_ATTR_FLAG_SINGLE_VALUE;
+ }
+
return LDB_SUCCESS;
}