• 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

JNDI RealmTimeout / Authentication issue

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there... any help would be appriciated.
I am currently using Apache Tomcat/4.1.12 as an application server. It is configured using a tomcat jndi realm which hits an openldap ldap directory server for authentication. Everything seems to run great. But if nobody uses the website for a while then it will double authenticate the next user to login. That is, Internet explorer prompts for the credentials twice, making it appear as if the first attempt was incorrect even though the password/username was right. I traced it down a bit and discovered it is most likely due to the openldap timeout. After the ldap connection times out (30 seconds or so), it appears that tomcat has to fail the authentication and re-ask to reopen the jndi connection. Any ideas how to prevent a double login by the user without changing the ldap timeout?
Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic