Maks3w / FR3DLdapBundle

This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)
119 stars 77 forks source link

override FR3DLdapBundle #144

Closed SahnounM91 closed 5 years ago

SahnounM91 commented 7 years ago

HI,

I've installed and configured FR3DBundle with FOSUserBundle and everything works OK , but there is something that I do not understand, why FR3DLdpaBundle save users in the database without password ? when I'm trying to Login the second time, two situations come to me : if the order of the chain providers is : providers: [fr3d_ldapbundle,fos_userbundle ] : FR3DLdapBundle trying to insert the same user another time in the database (duplicated entry) ! when the order of the chain providers is : providers: [fos_userbundle,fr3d_ldapbundle ] : the error invalid credential appear to me cause in the first login the user saved without password in the database. So I'm asking is there any way to hack the Bundle and override some controllers and functionality to get login functionality work successfully? @Maks3w

patrick-mota commented 7 years ago

A bit late but you can probably use custom hydrator to implement something. Check the faq in fr3d/ldap-bundle/Resources/doc/cookbook/custom_hydrator.md