This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker-openldap/test/db.sh
T

25 lines
660 B
Bash
Executable File

#!/bin/sh
dir=$(dirname $0)
. $dir/tools/config.prop
if [ -d "$openldapTestDir" ]; then
rm -r $openldapTestDir
fi
mkdir $openldapTestDir
mkdir $openldapTestDir/db
mkdir $openldapTestDir/config
runOptions="-e LDAP_DOMAIN=otherdomain.com -v $openldapTestDir/db:/var/lib/ldap -v $openldapTestDir/config:/etc/ldap/slapd.d"
. $dir/tools/run-simple.sh
$dir/tools/delete-container.sh
runOptions="-v $openldapTestDir/db:/var/lib/ldap -v $openldapTestDir/config:/etc/ldap/slapd.d"
. $dir/tools/run-simple.sh
echo "ldapsearch -x -h $IP -b dc=otherdomain,dc=com"
ldapsearch -x -h $IP -b dc=otherdomain,dc=com
rm -r $openldapTestDir
$dir/tools/delete-container.sh