This post covers a simple portal web interface customization, which will provide a “Free Access” option for guest users.
Some organizations do not want to administer guest accounts, but simply want to display a legal disclaimer which should be accepted and then allow internet access.
These are the basic configuration steps:
- Enable normal portal authentication
- Define a local guest user on the AC which will be used for the free-access authentication
- Customize the portal page and include a free-access form. This form will include a hidden username and password field.
The configuration was build using an 830 with software R3507P20
In this post, I assume that the normal portal configuration has been done on the AC.
Now, define a local guest user on the AC, this account will be used by the “Free access” login button.
local-user guest password simple hp authorization-attribute user-role guest service-type portal
Customize the logon.htm page.
The default logon.htm page contains 1 form. The key fields are:
<form action=logon.cgi method = post > <b><font face="Arial">USERNAME: </font></b> <input type="text" name = "PtUser" style="width:160px;height:22px" maxlength=64> <p><b><font face="Arial">PASSWORD: </font> </b> <input type="password" name = "PtPwd" style="width:160px;height:22px" maxlength=32> <p> <input type=submit value="Logon" name = "PtButton" style="width:60px; font-family:Arial; font-weight:bold"> </form>
Now we add (or replace if you do not want separate guest logins and show free-access only) a form. In this form, the username and password are simply pre-configured, and the fields are hidden. Only the button will be visible.
Instead of “Free Access”, you could configure “I Agree” and include some legal disclaimer text.
<form action=logon.cgi method = post > <input type="hidden" name="PtUser" value="guest"> <input type="hidden" name="PtPwd" value="hp"> <button type=submit value="Logon" name = "PtButton" style="width:100px; font-family:Arial; font-weight:bold">Free Access</button> </form>
If you do not want to customize yourself, this is a download of a sample customized portal:
The layout looks like this:
If you customize this example, make sure to make a new zip file with all the files in the root of the zip archive (no subfolders in the zip file !).
Next, upload the file to the AC, either to the root or the /portal subfolder.
Once the file has been uploaded, you can either:
- Rename the file to defaultfile.zip , this is the default file the AC will look for to load any customizations.
- Bind the custom file manually for a specific SSID. This would allow multiple Guest SSIDs, each with their own portal customizations.
To bind the custom file (example for an SSID with name Guests)
portal local-server bind ssid Guests file freev2.zip
This concludes the configuration of a free access example.
Note: it may be required to restart the portal server and/or ip http server to make the new portal pages active. I have not found yet what triggers the actual reload of the pages.