summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-22 18:21:02 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 15:41:35 +1100
commitb7f71c9407b736c4ec233aa8d4c4271a833fb88b (patch)
tree5b8337552259a5a2f804d3f352fdd6ab9d10b9c6
parent44a727479e54c7d12191d6752c62b12cc2f8081e (diff)
downloadsamba-b7f71c9407b736c4ec233aa8d4c4271a833fb88b.tar.gz
samba-b7f71c9407b736c4ec233aa8d4c4271a833fb88b.tar.bz2
samba-b7f71c9407b736c4ec233aa8d4c4271a833fb88b.zip
s4:gensec Use an index on computerName in schannel.ldb
-rw-r--r--source4/auth/gensec/schannel_state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/auth/gensec/schannel_state.c b/source4/auth/gensec/schannel_state.c
index 163ae1570d..e90b73b69f 100644
--- a/source4/auth/gensec/schannel_state.c
+++ b/source4/auth/gensec/schannel_state.c
@@ -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) {