Initial commit
This commit is contained in:
16
wp-content/plugins/authLdap-2.3.1/.ci/OpenLDAP_run.sh
Normal file
16
wp-content/plugins/authLdap-2.3.1/.ci/OpenLDAP_run.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
LDAP_DB=/tmp/ldap_db
|
||||
|
||||
echo "Creating database directory"
|
||||
|
||||
rm -rf ${LDAP_DB} && mkdir ${LDAP_DB} && cp /usr/share/doc/slapd/examples/DB_CONFIG ${LDAP_DB}
|
||||
|
||||
echo "Launching OpenLDAP ..."
|
||||
|
||||
# Start slapd with non root privileges
|
||||
slapd -h "ldap://0.0.0.0:3890/" -f ${DIR}/OpenLDAP/slapd.conf
|
||||
|
||||
# Wait for LDAP to start
|
||||
sleep 1
|
||||
Reference in New Issue
Block a user