diff --git a/src/Auth/Source/Radius.php b/src/Auth/Source/Radius.php index 3d61105..39b11d3 100644 --- a/src/Auth/Source/Radius.php +++ b/src/Auth/Source/Radius.php @@ -163,8 +163,9 @@ protected function login( $radius->setRadiusSuffix('@' . $this->realm); } $response = $radius->accessRequest($username, $password); - - if ($response !== false) { + $errorCode = $radius->getErrorCode(); + if ($response !== false || $errorCode === $radius::TYPE_ACCESS_REJECT) { + // Either we succeeded or the authentication failed. No need to try any secondary servers break; } }