|
|
|
@ -792,8 +792,8 @@ class Wizard extends LDAPUtility { |
|
|
|
|
|
|
|
|
|
\OCP\Util::writeLog('user_ldap', 'Wiz: Setting LDAP Options ', \OCP\Util::DEBUG); |
|
|
|
|
//set LDAP options |
|
|
|
|
$a = $this->ldap->setOption($cr, LDAP_OPT_PROTOCOL_VERSION, 3); |
|
|
|
|
$c = $this->ldap->setOption($cr, LDAP_OPT_NETWORK_TIMEOUT, self::LDAP_NW_TIMEOUT); |
|
|
|
|
$this->ldap->setOption($cr, LDAP_OPT_PROTOCOL_VERSION, 3); |
|
|
|
|
$this->ldap->setOption($cr, LDAP_OPT_NETWORK_TIMEOUT, self::LDAP_NW_TIMEOUT); |
|
|
|
|
if($tls) { |
|
|
|
|
$isTlsWorking = @$this->ldap->startTls($cr); |
|
|
|
|
if(!$isTlsWorking) { |
|
|
|
|