14 lines
300 B
Bash
14 lines
300 B
Bash
#!/usr/bin/env bash
|
|
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
FIXTURES_DIR="$DIR/ldif"
|
|
|
|
load_fixture () {
|
|
ldapadd -x -H ldap://127.0.0.1:3389/ -D "cn=admin,dc=example,dc=org" -w insecure -f $1
|
|
}
|
|
|
|
for FIXTURE in `ls ${FIXTURES_DIR}`
|
|
do
|
|
load_fixture "${FIXTURES_DIR}/${FIXTURE}"
|
|
done;
|