Initial commit
This commit is contained in:
13
wp-content/plugins/authLdap-2.3.1/.ci/load_fixtures.sh
Normal file
13
wp-content/plugins/authLdap-2.3.1/.ci/load_fixtures.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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:3890/ -D "cn=Manager,dc=example,dc=com" -w insecure -f $1
|
||||
}
|
||||
|
||||
for FIXTURE in `ls ${FIXTURES_DIR}`
|
||||
do
|
||||
load_fixture "${FIXTURES_DIR}/${FIXTURE}"
|
||||
done;
|
||||
Reference in New Issue
Block a user