Tomcat Authentication with LDAP
Submitted by Ali Abdel-Aziz on Tue, 2006-04-11 21:09.
All you have to do just if You want to make Tomcat Authenticat
with LDAP for Your WebApplication is.
!!! Follow the following three steps:
!!1. Copy the ldap.jar:
copy the ldap jar into
/usr/java/tomcat5/common/lib or
/usr/java/tomcat5/server/lib
The difference between those two paths is that
__The First__ one make the jar accecable to both the webApplication
and the server.
__The Second__ one make the jar accecable to the server only.
__Note:__
the above paths are relative to my tomcat path.
!!2. Create Realm:
Add the foolowing Realm to Your context.xml which are located under
WebApplication/Web Pages/META-INF/__context.xml__
!!3. Create Security Constarint and Login Config:
Add the foolowing to Your web.xml which are located under
WebApplication/Web Pages/WEB-INF/__web.xml__
Administration Area
*.jsf
OpenCraftUser
BASIC
OpenCraftUser
where OpenCraftUser is the role that your application users must have.
For additional Information visit this link
http://tomcat.apache.org/tomcat-5.0-doc/realm-howto.html#Quick%20Start





