mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
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.
This commit is contained in:
parent
e5f6fc276a
commit
49d6efe9a1
@ -1198,7 +1198,7 @@ class LdapConnection implements Selectable, Inspectable
|
|||||||
|
|
||||||
$hostname = $this->normalizeHostname($this->hostname);
|
$hostname = $this->normalizeHostname($this->hostname);
|
||||||
|
|
||||||
$ds = ldap_connect($hostname, $this->port);
|
$ds = ldap_connect($hostname);
|
||||||
|
|
||||||
// Set a proper timeout for each connection
|
// Set a proper timeout for each connection
|
||||||
ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, $this->timeout);
|
ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, $this->timeout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user