I'm trying to find the answer a problem I have, but I'm not sure if I'm on the right track. I need to configure WebSphere (5.1), so I can achieve the following:
- Check if the user is allowed to login based on custom criteria (I want a user only to be able to login if a special password was provided). If this succeeds, the user should just be logged in, no further questions asked.
- However,if this check fails, I want the user to be authenticated against LDAP.
After searching on the internet/javaranch, it seems to me that I can achieve this by creating a custom LoginModule, and define it as a JAAS LoginModule for WebSphere. However, when I try to just put in 1 custom JAAS module, it says that it cannot authenticate the user.
For a loginmodule, I'm currently trying to get this sample thing running:
Any help as to if this is even possible, and if so, what I'm missing, is greatly appreciated.
subject: Is this possible with JAAS, or WebSphere even for that matter?