* ActiveDirectory: fix not working ldaps connection on a non-standard port

This commit is contained in:
ralf 2023-08-17 12:22:45 +02:00
parent 556117f14a
commit 6d453f6e0d

View File

@ -83,7 +83,7 @@ class ServerInfo
*/
function __construct($host)
{
$this->host = $host;
$this->host = preg_match('#^ldaps?//([^:]+)#', $host, $matches) ? $matches[1] : $host;
}
/**
@ -287,4 +287,4 @@ class ServerInfo
}
return $ldapServerInfo;
}
}
}