From 9ac8e00d858f5b83711d01e324e84589c4e27df5 Mon Sep 17 00:00:00 2001 From: Marisa Date: Wed, 3 Dec 2025 11:11:31 -0500 Subject: [PATCH] Upload files to "/" --- entrypoint.sh | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0ef6ab3..fd05313 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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