cat > /etc/ldap/slapd.conf << "EOF" include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema include /usr/local/openxchange/share/openxchange.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args loglevel 0 modulepath /usr/lib/ldap moduleload back_bdb sizelimit 500 tool-threads 1 backend bdb checkpoint 512 30 database bdb suffix "dc=$hostname,dc=$de" directory "/var/lib/ldap" dbconfig set_cachesize 0 2097152 0 dbconfig set_lk_max_objects 1500 dbconfig set_lk_max_locks 1500 dbconfig set_lk_max_lockers 1500 index objectClass eq rootdn "cn=admin,dc=$hostname,dc=de" rootpw "$LDAP-PASSWORT" index uid,mailEnabled,cn,sn,givenname,lnetMailAccess,alias,loginDestination eq,sub index memberUid eq access to dn.subtree="ou=Users,ou=OxObjects,dc=$hostname,dc=de" by self write by users write by * read by anonymous auth access to dn.subtree="ou=Groups,ou=OxObjects,dc=$hostname,dc=de" by self write by users write by * read by anonymous auth access to dn.subtree="o=AddressBook,ou=OxObjects,dc=$hostname,dc=de" by group="cn=AddressAdmins,o=AddressBook,ou=OxObjects,dc=$hostname,dc=de" write by users read by self write lastmod on access to dn.base="" by * read access to * by * read EOF