aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes question about how to use LDAP in J2EE projects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "question about how to use LDAP in J2EE projects" Watch "question about how to use LDAP in J2EE projects" New topic
Author

question about how to use LDAP in J2EE projects

Robert Strong
Ranch Hand

Joined: Sep 10, 2002
Posts: 84
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about how to use LDAP in J2EE projects