From 49d6efe9a1e34714d1b9f0ffc0660bfdee6c1f33 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 5 Oct 2023 16:47:10 +0200 Subject: [PATCH] LdapConnection#prepareNewConnection(): don't pass the port to ldap_connect() This is deprecated since PHP 8.3. But this is unnecessary anyway as the passed hostname is computed by #normalizeHostname() which takes the port into account. --- library/Icinga/Protocol/Ldap/LdapConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Protocol/Ldap/LdapConnection.php b/library/Icinga/Protocol/Ldap/LdapConnection.php index 982db4201..a620e6de6 100644 --- a/library/Icinga/Protocol/Ldap/LdapConnection.php +++ b/library/Icinga/Protocol/Ldap/LdapConnection.php @@ -1198,7 +1198,7 @@ class LdapConnection implements Selectable, Inspectable $hostname = $this->normalizeHostname($this->hostname); - $ds = ldap_connect($hostname, $this->port); + $ds = ldap_connect($hostname); // Set a proper timeout for each connection ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, $this->timeout);