Upload files to "/"
This commit is contained in:
parent
dd670713e6
commit
9ac8e00d85
@ -79,19 +79,6 @@ EOF
|
||||
echo "--> Adding base structure"
|
||||
ldapadd -c -x -D "cn=admin,dc=example,dc=com" -w admin -f /tmp/base.ldif || true
|
||||
|
||||
#ADMIN_DN="cn=admin,${LDAP_BASE_DN}"
|
||||
#ADMIN_PW="admin"
|
||||
#slappasswd -h '{SSHA}' -s MarisaNewPass2025 | \
|
||||
#ldapmodify -x -D "$ADMIN_DN" -w "$ADMIN_PW" >/dev/null 2>&1
|
||||
#if [ $? -ne 0 ]; then
|
||||
# echo "--> CRITICAL ERROR: Failed to set Marisa's password with Admin credentials. Check ACLs or admin password."
|
||||
#fi
|
||||
|
||||
# Set a hardcoded password for Marisa to enable tests on the user
|
||||
#echo "--> Setting Marisa password to 'MarisaNewPass2025'"
|
||||
#slappasswd -h '{SSHA}' -s MarisaNewPass2025 | \
|
||||
#ldapmodify -Y EXTERNAL -H ldapi:/// >/dev/null 2>&1 || true
|
||||
|
||||
#──────────────────────────────────────────────────────────────
|
||||
# TLS BLOCK
|
||||
#──────────────────────────────────────────────────────────────
|
||||
@ -182,9 +169,9 @@ APACHE_PID=$!
|
||||
# Victory message
|
||||
echo "--> ldapdock ready — OpenLDAP + Apache + PHP running"
|
||||
echo " → LDAP: 389/636"
|
||||
echo " → Web: http://localhost/info.php"
|
||||
echo " → Shell: you are here forever"
|
||||
echo " → Stop with Ctrl+C"
|
||||
echo " → PHPinfo: http://localhost/info.php"
|
||||
echo " → Shell: /bin/bash"
|
||||
echo " → Exit with CTRL+D or 'exit' command"
|
||||
|
||||
# THIS IS THE MAGIC LINE THAT KILLS CHILD PROCESSES ON EXIT
|
||||
trap 'echo "Stopping services..."; kill $SLAPD_PID $APACHE_PID 2>/dev/null; wait' SIGINT SIGTERM
|
||||
|
||||
Loading…
Reference in New Issue
Block a user