-
Notifications
You must be signed in to change notification settings - Fork 77
Authentication failed if DN updated #104
Comments
Probably a solution could be if the authentication fails due missing DN then perform a ldap search without the cached DN. |
Yes but the error doesn't seem to be "Missing DN" but "Invalid credentials". I have no experience with LDAP, is there a way to distinguish the two errors ? If so I can try to fix that during this week. |
Due security reasons ldap_bind don't discloure what parameters is wrong. So:
|
Hi, I have the same problem. Thanks ! |
Hello, Thanks |
OK so ... workaround ...
And in the LdapAuthenticationProvider.php, I've replace this line :
By :
It's a bad workaround but it's work. I've to clone the FR3DLdapBundle before. Bye :) |
It works perfectly. |
I've just seen, TOTORO is in my code. Forgot it, sorry 😄 Due to the suppresion of DN in database, each connection will fail and generate the update of the DN.
To :
Good coding ... |
Hi,
This morning I could not connect to my application which use this bundle to retrieve the users from our LDAP.
I found this error in the logs of the application :
After some research I have found that my field DN on the LDAP has been changed to
CN=Jonathan GONÇALVES,OU=A5Sys,OU=A5 Groupe,DC=A5GROUPE,DC=local
and since I store this field on the database the authentification didn't work.I had to manually update the field on the database to be able to connect again.
Because the field can be changed for various reasons (for example a change of position), is there a way to prevent this issue? (Other than not storing the field in the database)
Thanks !
(I'm using the version 2.0.0 of the bundle with PHP 7.0.0RC1 or PHP 5.6.4 and Symfony 2.7.3)
The text was updated successfully, but these errors were encountered: