Good evening, I am trying to use this extension to use LDAP authentication in my application, but I always get this error:
Exception - stmswitcher\Yii2LdapAuth\Exception\Yii2LdapAuthException
Unable to bind LDAP search user. Code -1. Message: Can’t contact LDAP server
Can anyone who uses this extension help me out? the server address the user name and password of the user to connect with are correct
thanks in advance
Hy everyone,
I solved the probelma by changing the default LDAP configuration in the web.php file (provided by the extension’s user guide: stmswitcher/yii2-ldap-auth | Extensions | Yii PHP Framework)
I used as protocol ‘protocol’ => ‘ldap://’ instead of ‘protocol’ => ‘ldaps://’ with the corresponding port and now everything works fine