disable tls, needs more research
This commit is contained in:
parent
92a42b421b
commit
c86ba0d1d4
|
@ -97,7 +97,7 @@ class Ldap{
|
||||||
// use LDAPv3
|
// use LDAPv3
|
||||||
ldap_set_option($this->server, LDAP_OPT_PROTOCOL_VERSION, 3);
|
ldap_set_option($this->server, LDAP_OPT_PROTOCOL_VERSION, 3);
|
||||||
// start TLS if possible
|
// start TLS if possible
|
||||||
if (function_exists('ldap_start_tls')) @ldap_start_tls($this->server);
|
//if (function_exists('ldap_start_tls')) ldap_start_tls($this->server);
|
||||||
$bind = @ldap_bind($this->server, $user, $passwd);
|
$bind = @ldap_bind($this->server, $user, $passwd);
|
||||||
if ($bind) {
|
if ($bind) {
|
||||||
// return server handle
|
// return server handle
|
||||||
|
|
Loading…
Reference in New Issue