HI Gurus
i have configured LDAP Authentication on
tomcat 6.0 and it is running perfectly fine for me . my configuration is mention below .. but i got only one problem when ever i try to go on page where i have set ldap base authentication it automatically try to authentication me first and if i fail then give me login and password windows .. is there is any possibility i can stop that auto authentication ,as soon as anybody go on that page first things comes to them is basic login/password screen .
please let me know if you need more info
configuration in server.xml
<Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldap://test:389"
alternateURL="ldap://test1:389"
connectionName="CN=test,DC=ac,DC=uk"
connectionPassword="tttt"
userRoleName="member"
userBase="DC=ac,DC=uk"
roleBase="DC=ac,DC=uk"
userPattern="cn={0},DC=ac,DC=uk"
roleName="cn"
roleSearch="(member={0})"
roleSubtree="true"
debug="99"
/>
configuration in web.xml
<security-constraint>
<display-name>portal</display-name>
<web-resource-collection>
<web-resource-name>portal</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>
test</role-name>
</auth-constraint>
</security-constraint>
<login-config> <auth-method>BASIC</auth-method> <realm-name>ACCESS CURRENTLY RESTRICTED</realm-name> </login-config>
<security-role>
<role-name>test</role-name>
</security-role>