Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ldap authentication in symfony2

Tags:

ldap

symfony

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?

like image 649
Dorian Sarnowski Avatar asked Nov 12 '22 10:11

Dorian Sarnowski


1 Answers

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

like image 167
Maks3w Avatar answered Nov 15 '22 09:11

Maks3w