diff --git a/src/TestCase/AuthSource/Ldap/Configuration.php b/src/TestCase/AuthSource/Ldap/Configuration.php index 69b0f9b..d6a2ff7 100644 --- a/src/TestCase/AuthSource/Ldap/Configuration.php +++ b/src/TestCase/AuthSource/Ldap/Configuration.php @@ -37,6 +37,9 @@ final class Configuration extends \SimpleSAML\Module\monitor\TestCaseFactory /** @var bool */ private bool $debug = false; + /** @var array */ + private array $options = []; + /** * @param \SimpleSAML\Module\monitor\TestData $testData @@ -52,6 +55,10 @@ protected function initialize(TestData $testData): void $this->timeout = $authSourceData->getOptionalInteger('timeout', 3); $this->referrals = $authSourceData->getOptionalBoolean('referrals', false); $this->debug = $authSourceData->getOptionalBoolean('debug', false); + $this->options = $authSourceData->getOptionalArray( + 'opions', + ['network_timeout' => $this->timeout, 'referrals' => $this->referrals], + ); $this->setSubject($this->hostname); @@ -79,7 +86,7 @@ public function invokeTest(): void $this->version, 'ext_ldap', $this->debug, - ['network_timeout' => $this->timeout, 'referrals' => $this->referrals], + $this->options, ); $state = State::OK; } catch (Exception $error) {