Announcement Announcement Module
Collapse
No announcement yet.
Export users from Spring Secuirty database provider to LDAP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X