fix error reported ldap instead of ldaps

This commit is contained in:
ralf 2023-05-26 08:54:52 +02:00
parent 8221ed217f
commit 710b28396d

View File

@ -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;