This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Using JAAS Login module - shared state map problem - please help

Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across this article on
I am looking for some single sign on solution. However, after reading the article and trying a few stuff, I still have lots of doubt in my mind. Can anybody help me in solving my problem by answering a few questions?
Here goes the current implementation details abt user authentication –
1. We have a web application (say A) that talks to a service layer for user authentication and authorization.
2. The service layer is implemented using EJBs. The EJB talks to LDAP directory. The LDAP directory stores users, roles and permissions.
3. Now we have a second web application (say B) running in the same or some times different container as B. There exists a link from application A to got to application B. However, for application B, user has to login again.
4. The EJB uses JAAS Login module that talks to LDAP.
Now how can I use the shared state map to support single sign on? This map stores the username and password and passes it to the next login module. However, in my case, I have only one login module used by all applications. In addition, that map can store only one user name at a time as the key of the map is so how can I support multiple user at a time?

Can you please guide me in this respect? Any help would be highly appreciated.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic