• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

question about how to use LDAP in J2EE projects

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, I'm using weblogic8.1 and ldap for my J2ee project, user profile is stored both in LDAP and Database.

Current scenarioes like below:

user registration or update:
after user submit profile from web page, a StatelessSB would store profile data both in LDAP and Database.


user login:
1. after user submit username/password, an Authentication provider configured in weblogic server would search user in LDAP and return a set of roles of this user.

2. a StatelessSB would search LDAP again, to retrieve data user's profile from LDAP, then this profile is stored in HttpSession

my question is that, I feel in user login scenario, LDAP is accessed twice, both in Authentication provider and statelessSB, is there any way to allow authentication provider return the user's profile data in addition to a set of roles of the user?

any help appreciated!
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic