diff --git a/api/src/Accounts/Ads.php b/api/src/Accounts/Ads.php index f231d675e1..80ddf01ce7 100644 --- a/api/src/Accounts/Ads.php +++ b/api/src/Accounts/Ads.php @@ -1474,7 +1474,7 @@ class adLDAP extends \adLDAP */ public function getLastError() { - $url = $this->useTLS ? 'ldaps://' : 'ldap://'; + $url = $this->useSSL ? 'ldaps://' : 'ldap://'; if (!empty($this->adminUsername)) $url .= $this->adminUsername.$this->accountSuffix.'@'; $url .= implode(',', $this->domainControllers); if (!empty($this->adPort)) $url .= ':'.$this->adPort;