Results 1 to 2 of 2

Thread: Custom Authentication provider in acegi

  1. #1
    Join Date
    Dec 2006
    Posts
    2

    Default Custom Authentication provider in acegi

    We have a home grown authentication provider that uses LDAP and we discourage people from using LDAP directly. It is not possible that we retrieve the password from LDAP and populate the UserDetailsImpl with it so that the Authentication provider can compare the password to what the user supplied and see if its a match. We wanted this to work the same way as how acegi uses the BindAuthentication with LDAP. Is there a way that we can tell acegi not to compare the passwords since the custom authentication provider does this work for us ? Thanks for all the responses

  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 Acegi LDAP provider stores the submitted password in the UserDetails object (it doens't attempt to retrieve it from the directory). This is to make sure it works with a cache configured - the base class makes this necessary. In 2.0 th LdapAuthenticatioProvider no longer extends AbstractUserDetailsAuthenticationProvider.

    If you are just implementing AuthenticationProvider directly then I'm not quite sure what your question is. There shouldn't be any need for a password comparison.

Posting Permissions

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