How to configure LDAP for data access?
Hi I want to declare a LDAP resource in tc Server's context.xml, and refer to it in my Spring App.
I just want to query LDAP for data access, NOT for authentication.
This is what I have in Tomcat's context.xml
<Resource name="ldap/hubdirect"
auth="Container"
type="org.springframework.ldap.core.support.LdapCo ntextSource"
factory="org.springframework.ldap.pool.factory.Dir ContextPoolableObjectFactory"
java.naming.factory.initial="com.sun.jndi.ldap.Lda pCtxFactory"
com.sun.jndi.ldap.connect.pool="true"
java.naming.provider.url="....."
java.naming.security.authentication="simple"
java.naming.security.principal="....."
java.naming.security.credentials="....."/>
This is what I have in Spring config.xml
<jee:jndi-lookup id="contextSource" jndi-name="ldap/hubdirect">
But this is not working at all, and I do not see error message, either.