For using the JndiLoginModule, which jar should be kept in classpath? I am getting following exception… javax.security.auth.login.LoginException: unable to find LoginModule class: com.sun.security.auth.module.JndiLoginModule
This sounds like a question about a specific appserver. Which one? We have forums for questions about most of the popular appservers, BTW. You usually get a better answer when you ask there.
Customer surveys are for companies who didn't pay proper attention to begin with.
Rashmi Tambe
Ranch Hand
Joined: Aug 07, 2001
Posts: 418
posted
0
No this is not specific to any app server. I am trying to use a simple java application that instantiates the JndiLoginModule. This login module can be configured to talk to LDAP directory using a config file. I tried using that, but i am getting run time exception when i specify following line in my config file- LDAPModule{ com.sun.security.auth.module.JndiLoginModule required user.provider.url="ldap://<hostname>:636/DC=<Dc name>,DC=<domain>" debug=true useFirstPass=true tryFirstPass=true storePass=true clearPass=true; }; I refering the JAAS tutorial on sun site to configure the login config file...