slapd: Add indices for a few attributes.
[matthijs/servers/drsnuggles.git] / etc / ldap / slapd.conf
index 53fd07bdee80d720e4dd9d5c78e87f2b7a84270c..1e673928efbdfa8f2fae6399b6edf9977d5d5cd0 100644 (file)
 include         /etc/ldap/schema/core.schema
 include         /etc/ldap/schema/cosine.schema
 include         /etc/ldap/schema/nis.schema
+include         /etc/ldap/schema/ldapns.schema
 include         /etc/ldap/schema/inetorgperson.schema
+include         /etc/ldap/schema/qmail-reduced.schema
+include         /etc/ldap/schema/custom.schema
 
 # Where the pid file is put. The init.d script
 # will not stop the server if you change this.
@@ -41,7 +44,7 @@ database        bdb
 suffix          "dc=drsnuggles,dc=stderr,dc=nl"
 
 # Where the database file are physically stored for database #1
-directory       "/var/lib/ldap"
+directory       "/data/db/ldap"
 
 # For the Debian package we use 2MB as default but be sure to update this
 # value if you have plenty of RAM
@@ -60,6 +63,9 @@ dbconfig set_lk_max_lockers 1500
 
 # Indexing options for database #1
 index           objectClass eq
+index           uniqueMember,memberUid eq
+index           mail,mailAlternateAddress eq
+index           uid,uidNumber eq
 
 # Save the time that the entry gets modified, for database #1
 lastmod         on