From 399c7160d56866725d8931a2f816de3b6a995704 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 21 Sep 2009 19:26:59 -0700 Subject: s4:ldb Add 'single-value' support to LDB. This is currently only triggered via Samba4's schema code. --- source4/dsdb/schema/schema_init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/dsdb') 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; } -- cgit