summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-05-28 16:08:49 +1000
committerAndrew Tridgell <tridge@samba.org>2009-05-28 16:08:49 +1000
commit52cfffb8cba92e272224febd3d8df68b93e29bc7 (patch)
treef0c4738993886e82998bbe92967c050ab8505996
parent4b4fec65db4e202afa13b2d15867f4d8a54d154e (diff)
downloadsamba-52cfffb8cba92e272224febd3d8df68b93e29bc7.tar.gz
samba-52cfffb8cba92e272224febd3d8df68b93e29bc7.tar.bz2
samba-52cfffb8cba92e272224febd3d8df68b93e29bc7.zip
enable one-level indexing in sam.ldb
-rw-r--r--source4/dsdb/schema/schema_set.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index dcaeb4fc89..b94993574c 100644
--- a/source4/dsdb/schema/schema_set.c
+++ b/source4/dsdb/schema/schema_set.c
@@ -86,6 +86,11 @@ static int dsdb_schema_set_attributes(struct ldb_context *ldb, struct dsdb_schem
goto op_error;
}
+ ret = ldb_msg_add_string(msg_idx, "@IDXONE", "1");
+ if (ret != LDB_SUCCESS) {
+ goto op_error;
+ }
+
for (attr = schema->attributes; attr; attr = attr->next) {
const char *syntax = attr->syntax->ldb_syntax;