From 2c247996a93f86472f34728f4834a3229d6ecf89 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 17 Apr 2007 00:30:01 +0000 Subject: r22286: Import branch that converted the Samba4 test target code to perl and makes the code a bit clearer. (This used to be commit e3ba5ced0440e736f0f140e12a8c728f79a20bb2) --- source4/script/tests/mk-openldap.sh | 124 ------------------------------------ 1 file changed, 124 deletions(-) delete mode 100755 source4/script/tests/mk-openldap.sh (limited to 'source4/script/tests/mk-openldap.sh') diff --git a/source4/script/tests/mk-openldap.sh b/source4/script/tests/mk-openldap.sh deleted file mode 100755 index 1eb8b66583..0000000000 --- a/source4/script/tests/mk-openldap.sh +++ /dev/null @@ -1,124 +0,0 @@ -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 - -- cgit