summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-22 18:21:50 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 15:41:53 +1100
commitb392116c1f85faa365e714bc442447513557d768 (patch)
tree541a3500e9b08beabffc45b46de58b9d729bfb1f
parentb7f71c9407b736c4ec233aa8d4c4271a833fb88b (diff)
downloadsamba-b392116c1f85faa365e714bc442447513557d768.tar.gz
samba-b392116c1f85faa365e714bc442447513557d768.tar.bz2
samba-b392116c1f85faa365e714bc442447513557d768.zip
s4:secrets Look for LDAP secret with a name that is indexed
This avoids a very common unindexed lookup
-rw-r--r--source4/param/secrets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/secrets.h b/source4/param/secrets.h
index 743cf684a9..caffa50733 100644
--- a/source4/param/secrets.h
+++ b/source4/param/secrets.h
@@ -26,7 +26,7 @@
#define SECRETS_PRIMARY_REALM_FILTER "(&(realm=%s)(objectclass=primaryDomain))"
#define SECRETS_KRBTGT_SEARCH "(&((|(realm=%s)(flatname=%s))(samAccountName=krbtgt)))"
#define SECRETS_PRINCIPAL_SEARCH "(&(|(realm=%s)(flatname=%s))(servicePrincipalName=%s))"
-#define SECRETS_LDAP_FILTER "(objectclass=ldapSecret)"
+#define SECRETS_LDAP_FILTER "(&(objectclass=ldapSecret)(cn=SAMDB Credentials))"
/**
* Use a TDB to store an incrementing random seed.