1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00
Simo Sorce 950f3eb508 r3757: Some fixes for ldb_ldap
Now we pass also the test-ldap tests :-)
(This used to be commit 0d58b1dc5aa0b00a924c1c5506f0c500c0b37b3e)
2007-10-10 13:05:51 -05:00

33 lines
758 B
Bash
Executable File

#!/bin/sh
export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
SCHEMA_NEEDED="core nis cosine inetorgperson openldap"
# setup needed schema files
for f in $SCHEMA_NEEDED; do
if [ ! -r tests/schema/$f.schema ]; then
mkdir -p tests/schema
if [ -r /etc/ldap/schema/$f.schema ]; then
ln -s /etc/ldap/schema/$f.schema tests/schema/$f.schema
continue;
fi
if [ -r /etc/openldap/schema/$f.schema ]; then
ln -s /etc/openldap/schema/$f.schema tests/schema/$f.schema
continue;
fi
echo "ERROR: you need the following OpenLDAP schema files in tests/schema/"
for f in $SCHEMA_NEEDED; do
echo " $f.schema"
done
exit 1
fi
done
tests/init_slapd.sh
tests/start_slapd.sh
export LDB_URL=`tests/ldapi_url.sh`
. tests/test-generic.sh