Dynamic Login Pages for Ruckus
As of May 2016 the latest SVN of RADIUSdesk support three captive portals with its Dynamic Login Pages.
Mikrotik
CoovaChilli
Ruckus
This page will go into more technical detail on the Ruckus implementation of the Dynamic Login Pages.
How does it work?
A User connecting to the Captive Portal
Step 1 A User connects to an SSID on the Access Point that is open and which terminates into a Captive Portal.
Step 2 The Access Point contacts the controller to determine which log-in page should be served to the user.
Step 3 In our case the controller is configured in such a way that the login page is served from the RADIUSdesk server.
Step 4 RADIUSdesk use components from the query string to determine how the page which is served to the user will look.
Step 5 The user sees a login page on his or her web browser.
A User that logs in on the Captive Portal
With this we assume the user provided valid credentials and clicked the submit button.
Step A The submit button initialize a POST to the RADIUSdesk server. (Not shown in the diagram). Once this POST request is received by the RADIUSdesk server, the RADIUSdesk server in turn contacts the Ruckus Virtual Smart Zone to authenticate the user.
This is another POST request between the RADIUSdesk server and the Ruckus Virtual Smart Zone using a well defined
API and known shared secret between the two. The User never sees this shared secret, thus security is not compromised. This request can be either http or https.
Step B The Ruckus Virtual Smart Zone sends an Auth request to the FreeRADIUS server using the RADIUS protocol.
Step C The FreeRADIUS server replies with either an Auth Accept or Auth Reject. (If it is Accept the user will be allowed onto the Internet through the Access Point)
Step D The Ruckus Virtual Smart Zone sends a reply to the RADIUSdesk server which in turn will reflect the result on the login page.
Social Logins like Facebook, Twitter and Google use the same principle but log in twice, first with a temp user with a limited profile and after a successful social login the assiciated Voucher or Permanent user.
See the pages on Social Logins for more details.
RADIUSdesk -> Northbound Portal Interface Password
Setting the shared secret or Northbound Portal Interface Password. This secret will be the same for all Smart Zone controlles which contact the RADIUSdesk server.
Edit the /usr/share/nginx/html/cake2/rd_cake/Config/DynamicLogin.php file.
sudo vi /usr/share/nginx/html/cake2/rd_cake/Config/DynamicLogin.php
$config['DynamicLogin']['ruckus']['northbound']['password'] = 'stayoutnow123!';
RADIUSdesk -> Dynamic Login Page Association
Rukus setup