File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query about JndiLoginModule

 
Rashmi Tambe
Ranch Hand
Posts: 418
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17614
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to specify the group provider URL
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic