YFi Hotspot Manager Wiki
Brought to you by:
dvdwalt
The default value is:
HS_NASID=nas01
We will change it to Residence_Inn in this exercise.
HS_NASID=Residence_Inn
This will result in the value passed on to the login page inside the query string before authentication.
nasid=Residence_Inn
Next we should associate this with the name of a NAS defiend in YFi Hotspot Manager.
Here we specify for a Coova Chilli controller on a local machine:
HS_UAMFORMAT=http://\$HS_UAMLISTEN/c2/yfi_cake/login_pages/browser_detect
You also have to specify the location of the two login pages which you want to use in the configuration of the CakePHP application.
Edit the /var/www/c2/yfi_cake/config/yfi.php file and make sure the following items exist and reflect your settings:
//The location of the mobile and normal login pages $config['dynamic_login']['mobile'] = '/yfi/mobile.php'; $config['dynamic_login']['standard'] = '/yfi/standard.php';
We need to configure some values in the includes.php file:
$settings['3rd_url_create_perm'] = 'http://127.0.0.1/c2/yfi_cake/third_parties/json_create_permanent/'; //URL of 3rd party web service $settings['3rd_key'] = '123456789'; //Key for security on 3rd party web service $settings['3rd_realm_name'] = 'Residence+Inn'; //The default realm name used by 3rd party $settings['3rd_profile'] = 'Permanent+250M+CAP'; //The profiles the permanent user will be created with $settings['3rd_cap'] = 'hard'; //The cap the permanent user will be created with (hard/soft/pre-paid)
In order for the registration page to work as intended, make sure these variables reflect your configuration.