alef
alef

Reputation: 33

shared security between websphere and tomcat

Currently have WebSphere with some EJBs and defined custom user registry based on DB.

Now I am planning new application on Tomcat, which :

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

Answers (1)

SJuan76
SJuan76

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

Related Questions