Hi,
I have my ldap directory context specified as a resource in Tomcat's context.xml:
Now i would like to use this resource with LdapTemplate instead of specifying LdapContextSource bean. Is this possible? How can I use context resource with LdapTemlate?Code:<Resource name="ldap/myres" auth="Container" type="com.sun.jndi.ldap.LdapCtx" factory="com.mytutorial.LdapContextFactory" java.naming.factory.initial="com.sun.jndi.ldap.LdapCtxFactory" com.sun.jndi.ldap.connect.pool="true" java.naming.provider.url="ldap://localhost:389/dc=mycomp,dc=com" java.naming.security.authentication="simple" java.naming.security.principal="cn=Manager,dc=mycomp,dc=com" java.naming.security.credentials="secret"/>
Thanks for answer.


Reply With Quote