LdapConnection: Ensure port and timeout are numbers

This commit is contained in:
Markus Frosch 2018-10-16 14:44:01 +02:00
parent 3f782460dc
commit 39f5b5e2cd
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ class LdapConnection implements Selectable, Inspectable
$this->bindDn = $config->bind_dn;
$this->bindPw = $config->bind_pw;
$this->rootDn = $config->root_dn;
$this->port = $config->get('port', 389);
$this->timeout = $config->get('timeout', 5);
$this->port = (int) $config->get('port', 389);
$this->timeout = (int) $config->get('timeout', 5);
$this->encryption = $config->encryption;
if ($this->encryption !== null) {