LdapBundle icon indicating copy to clipboard operation
LdapBundle copied to clipboard

Symfony 2.8 [Security] Configuring a user checker per firewall

Open maximechagnolleau opened this issue 9 years ago • 5 comments

Since Symfony 2.8, you get the following error when using LdapBundle:

[Symfony\Component\Debug\Exception\ContextErrorException] Catchable Fatal Error: Argument 2 passed to Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider::__construct() must be an instance of Symfony\Component\Security\Core\User\UserCheckerInterface, string given, called in C:\projets\portail-bv\app\cache\dev\appDevDebugProjectContainer.php on line 1483 and defined

I think, it's related to this new feature:

  • feature #14721 [Security] Configuring a user checker per firewall (iltar)

Does this error is confirmed ? Any idea to fix it ?

Thanks !

maximechagnolleau avatar Dec 22 '15 14:12 maximechagnolleau

Fixes the problem for me. Thanks !

Yoda-BZH avatar Dec 23 '15 12:12 Yoda-BZH

For me too! Thanks

javiermadueno avatar Dec 23 '15 12:12 javiermadueno

Same problem here!

mablae avatar May 18 '16 00:05 mablae

I proposed a solution here: https://github.com/BorisMorel/LdapBundle/pull/165

Hope that helps you !

maximechagnolleau avatar May 18 '16 07:05 maximechagnolleau

@maximechagnolleau I depend on your master in production now :-) Works fine as far I can say. What about the comments

Joke aside, it would be great to get @maximechagnolleau PR merged, even if the lib has no future it seems.

mablae avatar May 18 '16 09:05 mablae