Results 1 to 4 of 4

Thread: LdapAuthenticationProvider : Configuring PasswordComparisonAuthenticator

  1. #1
    Join Date
    May 2006
    Posts
    3

    Exclamation LdapAuthenticationProvider : Configuring PasswordComparisonAuthenticator

    Does anybody know how to configure the PasswordComparisonAuthenticator for an LDAP Authentication Provider?
    My application is working pretty ok with the BindAuthenticator, but not with the PasswordComparisonAuthenticator.
    I have not been able to find any documentation on how to configure PasswordComparisonAuthenticator.

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

    Default

    The configuration options are basically the same as the BindAuthenticator, since they share the same base class. It has a constructor arg which takes the InitialDirContext factory and you can specify a list of patterns for the DN, or use a search to locate the user.

    Use the Javadoc and/or source xref from the website to work out the config params:

    http://acegisecurity.org/multiprojec...enticator.html

    I'm making some changes to the LDAP code at the moment, but it shouldn't affect simple configuration of the authenticators.

  3. #3
    Join Date
    Jun 2006
    Posts
    12

    Default

    I have the same issue and need clarification of the javadocs...
    Specifically, what exactly is the passwordAttributeName for, in the PasswordComparisonAuthenticator?

    Also, as a side question, should the BindAuthenticator only be used in the cases when the password stored in LDAP is not encrypted? If not, how would the BindAuthenticator know how to encrypt the passed-in clear text pw to match what's in LDAP, since it has no password-related properties?

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

    Default

    The "passwordAttributeName" is the name of the attribute which stores the user's password.

    should the BindAuthenticator only be used in the cases when the password stored in LDAP is not encrypted?

    No. The bind authentication mechanism is independent of how the passwords are stored.

Posting Permissions

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