This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JAAS Configuration gives Authontication Failure Error

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have JAAS config file as below,

dpJndi {
com.hp.ov.cwc.security.jaas.JndiLoginModule required
user.provider.url="ldap://swatsaveltd.com:389/cn=users,dc=swatsaveltd,dc=com"
security.principal="anonymous logon"
security.credentials=""
group.provider.url="ldap://swatsaveltd.com:389/ou=SECURITY GROUPS,ou=GROUPS,dc=swatsaveltd,dc=com"
security.authentication="simple"
group.search.objectClass="group"
use.samAccount.name="true"
user.search.scope=subtree_scope
group.search.scope=subtree_scope;
}

This is allowing user from a perticular OU to login. I want user from all the OUs can log in to the application (People, Group etc.). Please suggest me on what kind of changes I need to do in the file.

Also is it neccessry to put below statement in the cofiguration?
group.search.objectClass="group"


 
Saloon Keeper
Posts: 28224
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
If you're using JAAS just to authenticate and authorize against an Active Directory server, that's doing things the hard way. It's much simpler just to use the JNDIRealm.

If you actually did write custom A&A code that requires JAAS to run, that's a different matter, but we're not JAAS experts here. You're better off asking questions about JAAS and its configuration in the security forum.
 
I was her plaything! And so was this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic