Please post if there is any example/steps to configuring external LDAP and execute LDAP queries on it.
I tried the following
Finally lookup with local name succeeded, unfortunately that tried to connect localhost:389. Not sure what went wrong.
Please help with any example.
Properties:
com.sun.jndi.ldap.connect.pool=true
com.sun.jndi.ldap.connect.pool.maxsize=16
com.sun.jndi.ldap.connect.pool.prefsize=10
com.sun.jndi.ldap.connect.pool.timeout=600000
java.naming.referral=follow
java.naming.security.authentication=simple
Create a Foreign JNDI link
linkname : testLink
localJndi : testLocalJNDI
Remote JNDI : dc=test,dc=org (LDAP BASE DN)
Now you can access the LDAP from your code using the "testLocalJNDI".
Cheers, Karai