• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic