views:

35

answers:

1

Can someone show me a very simple example on implementing LDAP security on Tomcat 6, please? I know not much beyond deploying a war file and bouncing Tomcat server. Thanks in advance!

A: 

There are examples regarding using LDAP via JNDI with Apache Tomcat in the official documentation: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm

The configuration of the realm is done for your container, the mapping to the realm is in web.xml.

A quick Google search led to this: http://blog.mc-thias.org/?title=tomcat_ldap_authentication&more=1&c=1&tb=1&pb=1

Bruno