JNDIRealm on Tomcat 5.0
Hi All,
I have installed Tomcat 5.0 and iPlanet 5.1 Directory server. I need to authenticate the users from the user directory on iPlanet.
In my web.xml I had made the following changes,
<security-constraint>
<web-resource-collection>
<web-resource-name>MyWebApp</web-resource-name>
<description> accessible by authenticated users of the tomcat role</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description>These roles are allowed
access</description>
<role-name>My Server Group name</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>MyWebApp Protected Area</realm-name>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/autherr.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>My web Application</description>
<role-name>My Server Group name</role-name>
</security-role>
<RealmclassName="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://IP:port"
userBase="ou=People,cn=Company name, cn=domain"
userSearch="(uid={0})"
roleBase="ou=Groups"
roleName="cn=Directory Manager"
roleSearch="(uniqueMember={0})"
/>

