From 710b28396dd0aa8bb827878d8ba4642f974d220f Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 26 May 2023 08:54:52 +0200 Subject: [PATCH] fix error reported ldap instead of ldaps --- api/src/Accounts/Ads.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;