LdapBundle
LdapBundle copied to clipboard
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: hash_equals(): Expected known_string to be a string, null given"
After installing LdapBundle and configuring it, when I try to login with a valid user I get the following error
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: hash_equals(): Expected known_string to be a string, null given" at /var/www/html/contentpepperserver/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php line 84
Anyone has any idea what is the problem ? I'm trying to authenticate with openldap
Looks like this bundle isn’t maintained any more.
Hello,
Yeah, valid issue. I happens after upgrading to PHP 5.6
If the bundle is not maintained anymore its composer package should be marked "abandoned".
The quick fix for this is to change
encoders:
IMAG\LdapBundle\User\LdapUser: plaintext
to
encoders:
IMAG\LdapBundle\User\LdapUser: bcrypt
That should resolve the issue and let you continue to log in (worked for me)