Ldap authentication in symfony2

I am trying to implement ldap authentication in Symfony2 and I am stuck. All I want to do is save my user data in the database, but check if their passwords are valid via ldap, so only users who have a table in my user table and an ldap account have access to the application, over which I work with.

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

+5
source share
1 answer

FR3DLdapBundle is perfect for your needs. It integrates with FOSUserBundle to manage users with a database and LDAP authentication

+1
source

All Articles