1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00
Files
samba-mirror/source/lib/ldb/tests/test-ldap.sh
Simo Sorce 624a73148d r8082: large rewite of ldb_dn.c
- we do not support multpiple attribute components anymore, makes code a lot easier
  they will be readded later if we found out they are really used, so far my tests
  show w2k3 do not handle them as well

- fix escaping issues, move component value to be in an ldb_val structure
  still need to handle binary values case

- make cononicalize functions leak less memory by giving a specific memory context

- fix tests scripts so that test-ldap can start
- make test not delete databases on completion so that I can inspect them
2007-10-10 13:19:06 -05:00

41 lines
877 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
export LDB_URL=`tests/ldapi_url.sh`
PATH=bin:$PATH
export PATH
if [ -z "$LDBDIR" ]; then
LDBDIR="."
export LDBDIR
fi
. $LDBDIR/tests/init_slapd.sh
. $LDBDIR/tests/start_slapd.sh
. $LDBDIR/tests/test-generic.sh