Skip to content
Snippets Groups Projects
Commit 0ea44f35 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Use function from Utils\HTTP to get default for nasIdentifier

parent e374df4b
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class sspmod_radius_Auth_Source_Radius extends sspmod_core_Auth_UserPassBase ...@@ -98,7 +98,7 @@ class sspmod_radius_Auth_Source_Radius extends sspmod_core_Auth_UserPassBase
$this->realm = $config->getString('realm', null); $this->realm = $config->getString('realm', null);
$this->usernameAttribute = $config->getString('username_attribute', null); $this->usernameAttribute = $config->getString('username_attribute', null);
$this->nasIdentifier = $config->getString('nas_identifier', $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); $this->vendor = $config->getInteger('attribute_vendor', null);
if ($this->vendor !== null) { if ($this->vendor !== null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment