• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

AD authentication with JAAS

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going through Sun's tutorial on JAAS and am trying to get it to work with AD.

JAAS Authentication

It seems to "almost" work. I'm not getting any errors. I used LDAP Browser from Softerra to verify my LDAP syntax. (very handy free tool btw)

Here's my conf:
JaasConfig {
com.sun.security.auth.module.JndiLoginModule required debug=true
group.provider.url="ldap//secretname:389/CN=Users,DC=secretname,DC=com"; };

Here's the full output:
[JndiLoginModule] user provider: ldap://secretname:389/CN=Users,DC=secretname,DC=com
[JndiLoginModule] group provider: ldap//secretname:389/CN=Users,DC=secretname,DC=com
ldap username: secretname
ldap password: secret
[JndiLoginModule]: User not found
[JndiLoginModule] regular authentication failed
[JndiLoginModule]: aborted authentication failed
Authentication failed:
User not found

Any help would be appreciated. I think I've read all the tutorials I could find online. But if you want to pass one along, I certainly won't be offended. I would really appreciate specifics of what I'm doing wrong.

Thanks in advance.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic