From 3408108cb86c5d6f84f6b5b170b0f852771c1dfd Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 13 Feb 2024 18:11:29 +0100 Subject: [PATCH] Catch any negotiate fallbacks we cannot handle --- src/TestSuite/AuthSources.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/TestSuite/AuthSources.php b/src/TestSuite/AuthSources.php index f2aa414..82e7917 100644 --- a/src/TestSuite/AuthSources.php +++ b/src/TestSuite/AuthSources.php @@ -82,7 +82,14 @@ public function invokeTest(): void $this->addTestResults($negoTest->getTestResults()); // We need to do some convertions from Negotiate > LDAP - $authSourceData = $this->authSourceConfig->getValue($authSourceData['fallback']); + switch ($authSourceData['fallback']) { + case 'ldap:Ldap': + $authSourceData = $this->authSourceConfig->getValue($authSourceDat$ + default: + // Not implemented + continue 3; + }; + $testData->setInput($authSourceData, 'authSourceData'); $ldapTest = new AuthSource\Ldap($configuration, $testData);