Results 1 to 3 of 3

Thread: Use PasswordComparisonAuthenticator with Active Directory

  1. #1

    Angry Use PasswordComparisonAuthenticator with Active Directory

    Hello Guys, I'm a newbee to Spring, could anyone tell me if he/she had success with using PasswordComparisonAuthenticator with MS-AD with simple configuration ?

    I kept getting org.springframework.ldap.NoSuchAttributeException (LDAP Error 16).

    Thanks.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    The error you are getting seems to indicate that your ldap schema isn't the same as what you have configured within Spring Security. An example would be the passwordAttributeName defaults to userPassword. If this is not in your ldap schema, it will give an error similar to the one you are getting. My advice is to enable debugging and ensure that the queries that are logged out can be ran in a standard ldap tool. If they cannot be ran in the tool, Spring Security cannot run them either. For any queries that do not run, update your configuration as needed.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Active directory doesn't store the password in a readable form, so I doubt if it supports an LDAP compare operation on the password attribute.

    Therefore I'm pretty sure you can't use PasswordComparisonAuthenticator with AD.
    Spring - by Pivotal
    twitter @tekul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •