s4:gensec Use an index on computerName in schannel.ldb
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Oct 2009 07:21:02 +0000 (18:21 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 23 Oct 2009 04:41:35 +0000 (15:41 +1100)
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) {