It's not a secret anymore!
The moose likes Security and the fly likes Query about JndiLoginModule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Query about JndiLoginModule" Watch "Query about JndiLoginModule" New topic

Query about JndiLoginModule

Rashmi Tambe
Ranch Hand

Joined: Aug 07, 2001
Posts: 418
For using the JndiLoginModule, which jar should be kept in classpath? I am getting following exception… unable to find LoginModule class:
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145

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.

An IDE is no substitute for an Intelligent Developer.
Rashmi Tambe
Ranch Hand

Joined: Aug 07, 2001
Posts: 418
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{ 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...
sherjeelmd ghouse

Joined: Nov 17, 2005
Posts: 7
You need to specify the group provider URL
I agree. Here's the link:
subject: Query about JndiLoginModule
It's not a secret anymore!