diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-01-31 01:28:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:27 -0500 |
commit | 5e12e0024934c074ad5141f67fb95550e8aac69c (patch) | |
tree | d2963908cd4d6ea317651202cbece43e5dd4d404 /source4/script/tests/selftest.sh | |
parent | f7fb1e442ddd27917322069b3165cf3de340df00 (diff) | |
download | samba-5e12e0024934c074ad5141f67fb95550e8aac69c.tar.gz samba-5e12e0024934c074ad5141f67fb95550e8aac69c.tar.bz2 samba-5e12e0024934c074ad5141f67fb95550e8aac69c.zip |
r21068: Code to configure, start and stop Fedora DS.
We can't actually use it, as we are stuck inside our socket_wrapper
network, and can't talk to it.
Andrew Bartlett
(This used to be commit bd564da6b9b45c438ef81b42dc156116ed81cbe7)
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-x | source4/script/tests/selftest.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index 885486d546..70a91d4697 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -72,10 +72,14 @@ incdir=`dirname $ARG0` #Start slapd before smbd if [ x"$TEST_LDAP" = x"yes" ]; then - slapd_start || exit 1; + if test -z "$FEDORA_DS_PREFIX"; then + slapd_start || exit 1; + else + perl $FEDORA_DS_PREFIX/lib/fedora-ds/ds_newinst.pl $FEDORA_DS_INF || exit 1; + fi echo -n "LDAP PROVISIONING..." - $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS --ldap-backend=$LDAPI || { - echo "LDAP PROVISIONING failed: $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS --ldap-backend=$LDAPI" + $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS "$PROVISION_ACI" --ldap-backend=$LDAP_URI || { + echo "LDAP PROVISIONING failed: $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS $PROVISION_ACI --ldap-backend=$LDAP_URI" exit 1; } #LDAP is slow @@ -246,7 +250,11 @@ totalfailed=$? kill `cat $PIDDIR/smbd.pid` if [ "$TEST_LDAP"x = "yesx" ]; then - kill `cat $PIDDIR/slapd.pid` + if test -z "$FEDORA_DS_PREFIX"; then + kill `cat $PIDDIR/slapd.pid` + else + $LDAPDIR/slapd-samba4/stop-slapd + fi fi END=`date` |