• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

AD authentication with JAAS

 
Greenhorn
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
user.provider.url="ldap://secretname:389/CN=Users,DC=secretname,DC=com"
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.
reply
    Bookmark Topic Watch Topic
  • New Topic