s4:gensec Use an index on computerName in schannel.ldb
[ira/wip.git] / source4 / auth / gensec / schannel_state.c
index 163ae1570dab9544b748f63e0868961c52d7d878..e90b73b69fcaee85b419251554321101a16d8ed1 100644 (file)
@@ -38,7 +38,10 @@ struct ldb_context *schannel_db_connect(TALLOC_CTX *mem_ctx, struct tevent_conte
        const char *init_ldif = 
                "dn: @ATTRIBUTES\n" \
                "computerName: CASE_INSENSITIVE\n" \
-               "flatname: CASE_INSENSITIVE\n";
+               "flatname: CASE_INSENSITIVE\n" \
+               "\n" \
+               "dn: @INDEXLIST\n" \
+               "@IDXATTR: computerName\n\n";
 
        path = private_path(mem_ctx, lp_ctx, "schannel.ldb");
        if (!path) {