• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Query about JndiLoginModule

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 28140
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to specify the group provider URL
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic