LdapBundle icon indicating copy to clipboard operation
LdapBundle copied to clipboard

Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: hash_equals(): Expected known_string to be a string, null given"

Open pedroresende opened this issue 9 years ago • 3 comments

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

pedroresende avatar Jan 29 '16 16:01 pedroresende

Looks like this bundle isn’t maintained any more.

celsoandrade avatar Mar 16 '16 14:03 celsoandrade

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".

mablae avatar Jul 04 '16 09:07 mablae

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)

sgillamwright avatar Jan 23 '17 23:01 sgillamwright