From 0ea44f352ec2c8599d8c385afb266d044addfde3 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Thu, 3 Mar 2016 16:40:08 +0000 Subject: [PATCH] Use function from Utils\HTTP to get default for nasIdentifier --- modules/radius/lib/Auth/Source/Radius.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/radius/lib/Auth/Source/Radius.php b/modules/radius/lib/Auth/Source/Radius.php index 994780686..14df07310 100644 --- a/modules/radius/lib/Auth/Source/Radius.php +++ b/modules/radius/lib/Auth/Source/Radius.php @@ -98,7 +98,7 @@ class sspmod_radius_Auth_Source_Radius extends sspmod_core_Auth_UserPassBase $this->realm = $config->getString('realm', null); $this->usernameAttribute = $config->getString('username_attribute', null); $this->nasIdentifier = $config->getString('nas_identifier', - isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost'); + \SimpleSAML\Utils\HTTP::getSelfHost()); $this->vendor = $config->getInteger('attribute_vendor', null); if ($this->vendor !== null) { -- GitLab