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 |