From 6d71e8fafb51b0bb61a78f21f3c6972dde5f36ed Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 14 Jan 2026 09:00:26 +0100 Subject: [PATCH 1/2] Always set the NAS identifier; if not set fall back to the hostname --- src/Auth/Source/Radius.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Auth/Source/Radius.php b/src/Auth/Source/Radius.php index 20cc029..87a9d22 100644 --- a/src/Auth/Source/Radius.php +++ b/src/Auth/Source/Radius.php @@ -158,10 +158,7 @@ protected function login( $httpUtils = new Utils\HTTP(); $radius->setNasIpAddress($_SERVER['SERVER_ADDR'] ?: $httpUtils->getSelfHost()); - - if ($this->nasIdentifier !== null) { - $radius->setAttribute((string)self::RADIUS_NAS_IDENTIFIER, $this->nasIdentifier); - } + $radius->setAttribute((string)self::RADIUS_NAS_IDENTIFIER, $this->nasIdentifier ?: $httpUtils->getSelfHost()); if ($this->realm !== null) { $radius->setRadiusSuffix('@' . $this->realm); From be4e9accd2a073bf8a1b618d5c6189b5162300eb Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 14 Jan 2026 10:25:47 +0100 Subject: [PATCH 2/2] Refrain from setting NAS-IP-Address --- src/Auth/Source/Radius.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Auth/Source/Radius.php b/src/Auth/Source/Radius.php index 87a9d22..3d61105 100644 --- a/src/Auth/Source/Radius.php +++ b/src/Auth/Source/Radius.php @@ -157,7 +157,6 @@ protected function login( $radius->setIncludeMessageAuthenticator(); $httpUtils = new Utils\HTTP(); - $radius->setNasIpAddress($_SERVER['SERVER_ADDR'] ?: $httpUtils->getSelfHost()); $radius->setAttribute((string)self::RADIUS_NAS_IDENTIFIER, $this->nasIdentifier ?: $httpUtils->getSelfHost()); if ($this->realm !== null) {