git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:ldb Add 'single-value' support to LDB.
[samba.git]
/
source4
/
dsdb
/
schema
/
schema_init.c
diff --git
a/source4/dsdb/schema/schema_init.c
b/source4/dsdb/schema/schema_init.c
index fa1953a14fd9969ce6dfd75d1baa2106995c8e72..8bb54f47f4e7510ff9df19301232519f40b9c391 100644
(file)
--- 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;
}