• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Authentication in tomcat 4.1.27

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am migrating my web application to 4.1.27 from tomcat 3 .

In tomcat 3 , I had following code for authentication in server.xml.
<RequestInterceptor className="com.remind.securetomcat.SecRealm" debug="0"
initCtx="com.sun.jndi.ldap.LdapCtxFactory"
ldapHost="ldap://ldap.mycompany.com:389"
baseDn="ou=active,ou=employees,ou=people,o=mycompany.com"
maxDnAge="300"
maxPwAge="6000"
maxFilterAge="6000"
/>
where as 'com.remind.securetomcat.SecRealm' is my class to authenticate user
by my company's ldap.
com.remind.securetomcat.SecRealm class extends tomcat's
org.apache.tomcat.core.BaseInterceptor' , which is not present in tomcat
4.1.27 .
What changes are required to make authentication work in server.xml in
tomcat 4.1.27 configuration
to make this work?
Thanks in advance
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking container-managed Auth, then read up on Realms in the docs.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm

The JNDI realm implementation provided with Tomcat accesses LDAP
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!