Results 1 to 2 of 2

Thread: Export users from Spring Secuirty database provider to LDAP

  1. #1
    Join Date
    Feb 2012
    Posts
    1

    Default Export users from Spring Secuirty database provider to LDAP

    Hi ,
    I have a question maybe someone will help me. We have initially setup an application that uses Spring Security and database provider as our authentication service...
    Code:
    <security:authentication-manager alias="authenticationManager">
    		<security:authentication-provider
    			user-service-ref="userAccountService">
    			<security:password-encoder hash="sha-256" />
    		</security:authentication-provider>
    </security:authentication-manager>
    As you can see password are hashed. And now we want to migrate users to LDAP server... leaving original users passwords so it be completely transparent to them... Is this possible? Any help appreciated

    Regards FF

  2. #2
    Join Date
    Nov 2006
    Location
    London, UK and Tallinn, Estonia
    Posts
    55

    Default

    Yes it's certainly possible, there are a few approaches but one option is to use a org.springframework.security.ldap.authentication.P asswordComparisonAuthenticator and set a PasswordEncoder (ShaPasswordEncoder in your case) on the Authenticator. Take a look at the Spring docs under the Ldap Authenicators section

    Cheers
    Toby Hobson
    toby.hobson@cloudseal.com
    Single Sign on for Java - www.cloudseal.com
    Follow me on Twitter: tobyhobson

Tags for this Thread

Posting Permissions

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