Hello!
My webapp is running on Tomcat 5.0.
I've been trying to set it up to use the LDAP server for authentication
without any luck.
Here are my entries in server.xml and web.xml respectively:
server.xml:
<Host name="beepy.myinfogenic.net" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Realm className="org.apache.catalina.realm.JNDIRealm"
debug="99"
connectionURL="ldap://10.0.0.29:389"
roleBase="O=Infogenic"
userPattern="O=Infogenic"
roleSearch="(uniqueMember={0})"
/>
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="1"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="deepa.myinfogenic_log."
suffix=".txt"
timestamp="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="deepa_access_log."
suffix=".txt"
pattern="common" resolveHosts="false"/>
<Context path="/test" docBase="test" debug="0" reloadable="true"/>
</Host>
web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Portal</web-resource-name>
<description> accessible by authenticated users of the
tomcat role</description>
<url-pattern>/servlet/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>These roles are allowed access</description>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>YourWebApp Protected Area</realm-name>
</login-config>
Thanks.
Deepa