enable one-level indexing in sam.ldb
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 May 2009 06:08:49 +0000 (16:08 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 May 2009 06:08:49 +0000 (16:08 +1000)
source4/dsdb/schema/schema_set.c

index dcaeb4fc89b06b58e01843ff0c7992d81e816627..b94993574c3edb3da45537a5fbaad9e9c9d3665c 100644 (file)
@@ -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;