We'd like to be able to grab the password out of LDAP to do passthrough authentication to another server we have.
What's the best way to do this? It appears if we call UsernamePasswordLoginModule.getUsernameAndPassword() it would return the password. Is this the best way to do this? Should we use a different class so we're not hitting the LDAP implementation directly?
Is there an MBean that we need to look up?
Steve
Why wouldnt you use the LDAPLoginModule? Configure it to grab the credentials from LDAP and set them in the Subject. Then you get the credentials later on, either in your code itself or by implementing a SecurityProxy?