Closed Rudloff closed 6 years ago
Hi,
According to the documentation, the LDAP_OPT_PROTOCOL_VERSION option is used to specify the LDAP version of your LDAP server. Thus, the line you have added set the version to 3, but there is many companies which still use LDAP V2.
So, your issue is interesting and certainly this will help some user who encounter this error, but for this moment, I don't think I will add this line in the LDAP class. If many user alert me about this problem, I will reconsider your patch.
I will see if I can create an option in the ldap configuration file, but currently I am a little bit busy. Feel free to suggest a pull request ;).
Thank you very much for your contribution, I hope you succeeded to set up Mattermost-LDAP.
Regards
Hi,
Finally change my mind. I have included a version option in the last version. Thus, you can precise the version in config_ldap.php file and the LDAP class set the LDAP_OPT_PROTOCOL_VERSION automatically after ldap_connect. I hope this feature will help.
Thank you for your contribution.
Hello,
I get this error when trying to login:
This fixes the issue:
I'm not sure if it applies to every LDAP server, maybe it needs to be added as an option.