aspose file tools*
The moose likes Tomcat and the fly likes problem with ldap auto authentication on Tomcat 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem with ldap auto authentication on Tomcat 6.0" Watch "problem with ldap auto authentication on Tomcat 6.0" New topic
Author

problem with ldap auto authentication on Tomcat 6.0

Devender Narula
Greenhorn

Joined: Sep 10, 2010
Posts: 5
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with ldap auto authentication on Tomcat 6.0