SLAPD_CONF=$LDAPDIR/slapd.conf export SLAPD_CONF echo "OPENLDAP_LOGLEVEL=0" OPENLDAP_PIDFILE=$PIDDIR/slapd.pid echo "OPENLDAP_PIDFILE=$OPENLDAP_PIDFILE" cat >$SLAPD_CONF < $LDAPDIR/db/DB_CONFIG <&2 #Now create an LDAP baseDN $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS --ldap-base >&2 OLDPATH=$PATH PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH export PATH MODCONF=$LDAPDIR/modules.conf rm -f $MODCONF touch $MODCONF slaptest -u -f $SLAPD_CONF >&2 || { # echo "enabling slapd modules" >&2 cat > $MODCONF </dev/null || { echo "slapadd failed" >&2 } slaptest -f $SLAPD_CONF >/dev/null || { echo "slaptest after database load failed" >&2 } fi PATH=$OLDPATH export PATH