aspose file tools*
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
Author

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…
javax.security.auth.login.LoginException: unable to find LoginModule class: com.sun.security.auth.module.JndiLoginModule
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

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
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...
sherjeelmd ghouse
Greenhorn

Joined: Nov 17, 2005
Posts: 7
You need to specify the group provider URL
 
Consider Paul's rocket mass heater.
 
subject: Query about JndiLoginModule