Open PierreTecher-honhon opened 4 years ago
Hi,
As stated in issue #54, Mattermost-LDAP should support ldaps if the certificate exposed by the LDAP server is trusted by the LDAP client used by PHP on the Oauth server.
In case of a certificate issue, you get the error ldap_bind(): Unable to bind to server: Can't contact LDAP server
. To confirm this is a certificate issue, and not a general connection problem, you can try with standard LDAP on port 389, it should be working.
Moreover, you can add the following line before the ldap_connect()
line 40 in the oauth/LDAP/LDAP.php
file. This will enable all log for PHP LDAP library.
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
Let me know if this solves your issue,
Regard
You can also try with these
export LDAPTLS_REQCERT=never
.
Stackoverflow
Hello,
Describe the bug While using the application, I get an error message on functions of .php script.
The most interesting log is the ldap_bind one, where I would like to understand how to use my configuration SSL with ldaps.
To Reproduce Here's my configuration to reproduce the error. ldap_host : ldaps://mysite/ ldap_port : 636
Mattermost_port : 8000
Expected behavior I expected to be able to connect with ldap credentials. What did I get wrong ?
Regards, Pierre