From 6d453f6e0de06ec222a7a0a016a6ab9d4c3c2841 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 17 Aug 2023 12:22:45 +0200 Subject: [PATCH] * ActiveDirectory: fix not working ldaps connection on a non-standard port --- api/src/Ldap/ServerInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Ldap/ServerInfo.php b/api/src/Ldap/ServerInfo.php index bf033fe058..687f157a24 100644 --- a/api/src/Ldap/ServerInfo.php +++ b/api/src/Ldap/ServerInfo.php @@ -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; } -} +} \ No newline at end of file