diff -up e-smith-ldap-5.4.0/root/var/service/ldap/run.unused e-smith-ldap-5.4.0/root/var/service/ldap/run --- e-smith-ldap-5.4.0/root/var/service/ldap/run.unused 2013-03-09 16:25:38.339026168 -0700 +++ e-smith-ldap-5.4.0/root/var/service/ldap/run 2013-03-09 16:29:13.893517992 -0700 @@ -34,7 +34,8 @@ ln -sf $ldif ./ldif /sbin/e-smith/expand-template /var/lib/ldap/DB_CONFIG # Make sure we use the slapd.conf file instead of the new slapd.d -find /etc/openldap/slapd.d/ -mindepth 1 -maxdepth 1 -exec rm -rf {} \; +touch /etc/openldap/slapd.d/unused +find /etc/openldap/slapd.d/ -mindepth 1 -maxdepth 1 -not -name unused -exec rm -rf {} \; /sbin/e-smith/expand-template /etc/openldap/slapd.conf # If the ldif dump is empty it's sme8beta: init ldap