Skip to content
Snippets Groups Projects
Verified Commit d6ee2e40 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add LDAP proxying script (for development purposes)

parent 180395c8
No related branches found
No related tags found
1 merge request!7Add LDAP-based login logic in backend
#!/bin/sh
# Add an entry to the hosts file so that any request to ldap2.cl.uni-heidelberg.de will be redirected
# to localhost, and then use SSH to forward any requests to localhost (port 636) to ldap2.cl.uni-heidelberg.de.
#
# Expected usage is within the container:
#
# sudo docker compose -f docker-compose.dev.yml up
# sudo docker exec -it portal-app-1 bash
# ./proxy_ldap.sh mustermann
#
# Replace "mustermann" with your ICL username.
echo "127.0.0.1 ldap2.cl.uni-heidelberg.de" >> /etc/hosts
ssh "$1@last.cl.uni-heidelberg.de" -L 636:ldap2:636
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment