Reputation: 33
Currently have WebSphere with some EJBs and defined custom user registry based on DB.
Now I am planning new application on Tomcat, which :
has to call EJB from WebSphere as logged user (results of call depend of calling user )
Users in DB have hashed passwords, Tomcat app during user login can hash entered password and determine if valid, but now if I call WebSphere EJB, I assume I should provide password (to InitialContext?), but no one knows it?
Does Anyone have idea how to solve it?
Upvotes: 1
Views: 219
Reputation: 24780
Dirt and quick: Store unhashed password in Tomcat session and use it. Remember not to serialize it!
Alternative: Explore what kerberos does. I am not very familiar with it, but its objective seems exactly the same that you are looking for (kerberos centralices authentication and returns ticket that give access to the resources). Sorry I cannot be more specific.
Upvotes: 1