0 Replies Latest reply on Oct 6, 2004 7:52 PM by rudell

    Custom LoginModule that Stores Credentials

    rudell

      I know there are some security implications on doing this... But here is what I want to do:

      1) Modify or subclass the LDAP LoginModule so that the password used to login is stored in a location that can be retrieved later on.
      2) I would prefer to store the password in a location that only allows JBoss applications to have access to it. (Possibly in JNDI)
      3) When someone connects to my EJB retrieve the password that was used to login and use it to call another application. (The actual user & password is required to contact this second application.)

      Note that the second application will most likely be a web service... The web service may or may not be running within JBoss. (But both of the applications will be authenticated against the same LDAP.)

      Anyone have an example of doing something like this? Or have any suggestions on where/how to store the password?

      Thanks