5

I'm trying to implement ldap authentication in Symfony2 and I'm stuck. All I want to do is to keep my users' data in database but check if theirs passwords are valid through ldap, so only users who have both the row in my users table and an ldap account have access to the application I'm working on.

I've read all the related docs (especially this: http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html) and spend some time on reading the symfony code, but really have no idea how to do it. The security component looks very complex and I still don't understand how it works. Is there any way to switch just the Authentication Provider?

1

1 Answer 1

1

FR3DLdapBundle is perfect for your needs. It integrates with FOSUserBundle for user management against the DB and authentication against LDAP

Sign up to request clarification or add additional context in comments.

1 Comment

This bundle is terrible to configure. I've been working with SF2 for quite a while now but this thing is a drama.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.