再次感謝這位工程師的無私分享
http://abouthpnetworking.com/2014/06/02/hp-unified-wireless-free-access-option-on-guest-portal/
MSM控制器內建 Portal Server ,但是 Unified 控制器並沒有 所以 請參考 URL網址上面的 freev2.zip 下載下來 並TFTP到無線控制器中!!
下面是 設定方式與執行步驟!!
These are the basic configuration steps:
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:
Download the sample freev2.zip
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:
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.