Casio ISA550WBUN3K9 Network Router User Manual


 
Networking
Using External Web-Hosted CGI Scripts
Cisco ISA500 Series Integrated Security Appliances Administration Guide 195
4
if (($result == 3) || ($result == 13)) {
print "
<h1 style=\"text-align: center;\">Logged out from MySMB</h1>[5.1]
<center>
<a href=\"http://$uamip:$uamport/prelogin\">Login</a>[5.2]
</center>
</body>
</html>";
}
exit(0);
CGI Source Code Example: No Authentication and Accept
Button
Following is a CGI script which presents a Accept button on the portal page.
The secret string programmed in uamsecret variable should be configured as
Authentication Web Key on the Captive portal page. Replace the MySMB string in
the following section with your company name.
#!/usr/bin/perl
# chilli - ChilliSpot.org. A Wireless LAN Access Point Controller
# Copyright (C) 2003, 2004 Mondru AB.
#
# The contents of this file may be used under the terms of the GNU
# General Public License Version 2, provided that the above copyright
# notice and this permission notice is included in all copies or
# substantial portions of the software.
# Redirects from ChilliSpot daemon:
#
# Redirection when not yet or already authenticated
# notyet: ChilliSpot daemon redirects to login page.
# already: ChilliSpot daemon redirects to success status page.
#
# Response to login:
# already: Attempt to login when already logged in.
# failed: Login failed
# success: Login succeded
#
# logoff: Response to a logout
# Shared secret used to encrypt challenge with. Prevents dictionary attacks.
# You should change this to your own shared secret.
#$uamsecret = "ht2eb8ej6s4et3rg1ulp";