Avoid the use of extensibleObject in ldap mapping backend.
[kai/samba.git] / source4 / setup / slapd.conf
index 34896d04b93b56bc3d772c0d8ec81f0d877c8a40..15b9d3104e82e5e292ff08e627d82b62383690df 100644 (file)
@@ -21,8 +21,9 @@ include ${LDAPDIR}/modules.conf
 
 defaultsearchbase ${DOMAINDN}
 
-backend                bdb
-database        bdb
+${MEMBEROF_CONFIG}
+
+database        hdb
 suffix         ${SCHEMADN}
 directory      ${LDAPDIR}/db/schema
 index           objectClass eq
@@ -31,8 +32,15 @@ index name eq
 index objectCategory eq
 index lDAPDisplayName eq
 index subClassOf eq
+index cn eq
+
+#syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
+#We only need this for the contextCSN attribute anyway....
+overlay syncprov
+syncprov-checkpoint 100 10
+syncprov-sessionlog 100
 
-database        bdb
+database        hdb
 suffix         ${CONFIGDN}
 directory      ${LDAPDIR}/db/config
 index           objectClass eq
@@ -40,15 +48,20 @@ index           samAccountName eq
 index name eq
 index objectSid eq
 index objectCategory eq
-index nCName eq pres
+index nCName eq
 index subClassOf eq
 index dnsRoot eq
-index nETBIOSName eq pres
+index nETBIOSName eq
+index cn eq
 
-database        bdb
+#syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
+#We only need this for the contextCSN attribute anyway....
+overlay syncprov
+syncprov-checkpoint 100 10
+syncprov-sessionlog 100
+
+database        hdb
 suffix         ${DOMAINDN}
-rootdn          ${LDAPMANAGERDN}
-rootpw          ${LDAPMANAGERPASS}
 directory      ${LDAPDIR}/db/user
 index           objectClass eq
 index           samAccountName eq
@@ -58,16 +71,19 @@ index objectCategory eq
 index member eq
 index uidNumber eq
 index gidNumber eq
-index unixName eq
-index privilege eq
-index nCName eq pres
+index nCName eq
 index lDAPDisplayName eq
 index subClassOf eq
 index dnsRoot eq
-index nETBIOSName eq pres
+index nETBIOSName eq
+index cn eq
+
+rootdn          ${LDAPMANAGERDN}
+rootpw          ${LDAPMANAGERPASS}
 
 #syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
 #We only need this for the contextCSN attribute anyway....
 overlay syncprov
 syncprov-checkpoint 100 10
 syncprov-sessionlog 100
+