• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with ldap auto authentication on Tomcat 6.0

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic