Skip to content

Instantly share code, notes, and snippets.

@toodooleedoo
Last active December 19, 2016 15:42
Show Gist options
  • Save toodooleedoo/b77373d3f2a3ea241c53 to your computer and use it in GitHub Desktop.
Save toodooleedoo/b77373d3f2a3ea241c53 to your computer and use it in GitHub Desktop.
AEM/CQ AEM Java LDAP Proxy

Inside your AEM bin folder you will find a proxy.jar. You can the point AEM to this proxy and run the proxy pointing to the real LDAP server.

Helps for debugging and in this case I added this snippet to our development servers startup script.

LDAPSERVER="localhost"
LDAPSERVER_PORT="3060"
AEMPORT="3333"
ps aux |grep [p]roxy &>/dev/null
if [[ $? = 1 ]]; then
nohup /home/adobe/java/usr/java/jdk1.6.0_30/bin/java -jar /home/adobe/proxy.jar <<<${LDAPSERVER} ${LDAPSERVER_PORT} ${AEMPORT} -b -logfile /home/adobe/ldapproxy.log >/dev/null &
else
echo "Proxy is already running";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment