mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
LdapConnection: Ensure port and timeout are numbers
This commit is contained in:
parent
3f782460dc
commit
39f5b5e2cd
@ -185,8 +185,8 @@ class LdapConnection implements Selectable, Inspectable
|
|||||||
$this->bindDn = $config->bind_dn;
|
$this->bindDn = $config->bind_dn;
|
||||||
$this->bindPw = $config->bind_pw;
|
$this->bindPw = $config->bind_pw;
|
||||||
$this->rootDn = $config->root_dn;
|
$this->rootDn = $config->root_dn;
|
||||||
$this->port = $config->get('port', 389);
|
$this->port = (int) $config->get('port', 389);
|
||||||
$this->timeout = $config->get('timeout', 5);
|
$this->timeout = (int) $config->get('timeout', 5);
|
||||||
|
|
||||||
$this->encryption = $config->encryption;
|
$this->encryption = $config->encryption;
|
||||||
if ($this->encryption !== null) {
|
if ($this->encryption !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user