cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
617
Views
0
Helpful
4
Replies

Customized Web Auth Pages and Redirection Pages

lc_calvin
Level 1
Level 1
  • We only have AP and controller deployed, model: AP 3502/3702 joined the 5508 controller.
  • While we would like to preform the below on the customized redirection pages, is that possible?

  • SSID A -> Customized Page A -> google.com.hk
  • SSID B -> Customized Page A -> google.com.hk
  • SSID C -> Customized Page B -> google.co.jp
  • SSID D -> Customized Page B -> google.co.jp
  • SSID E -> Customized Page C -> google.in

 Thanks !

4 Replies 4

Sandeep Choudhary
VIP Alumni
VIP Alumni

HI,

Yes, You can do that from:

What i need is different redirection pages for each ssid.

like Clients who are being authenticated with SSID A should be redirected to google.com.hk

Clients who are being authenticated with SSID C should be redirected to google.co.jp

1. You can do that from under WLAN cofnig -> Security -> Layer 3. for external servers only. not for the internal page.

It can only be used for external servers but cannot be used for the internal server authentication.

2.  you can do a per WLAN redirect, but you have to do custome pages for each WLAN.  You can specify the redirect URL in the HTML configuration.

For each ssid you have a diff custom webauth file right..?

then modified like this:

Use google.com.hk for SSID A and use google.co.jp for SSID C.

if(urlStr.length > 0){

      redirectUrl += urlStr;

      if(redirectUrl.length > 255)

         redirectUrl = redirectUrl.substring(0,255);

     document.forms[0].redirect_url.value = redirectUrl;

Changed the urlStr variable to my redirect URL (i.e., redirectUrl += "http://www.google.com.hk"



Regards

Dont forget to rate helpful posts

Hi Sandeep, cool idea, any template i can start with ? so it is more easily then write the whole pages from stretch :)

Thanks!!

Hi,

Here is the link:

https://software.cisco.com/download/release.html?mdfid=282600534&softwareid=282791507&release=1.0.2&relind=AVAILABLE&rellifecycle=&reltype=latest

Download it and change accordingly.

Regards

Don't forget to rate helpful posts

Hi Sandeep,

I tried the below but still failed, any ideas?

function submitAction(){
var link = document.location.href;
var searchString = "redirect=";
var equalIndex = link.indexOf(searchString);
var redirectUrl = "";

if (document.forms[0].action == "") {
var url = window.location.href;
var args = new Object();
var query = location.search.substring(1);
var pairs = query.split("&");
for(var i=0;i<pairs.length;i++){
var pos = pairs[i].indexOf('=');
if(pos == -1) continue;
var argname = pairs[i].substring(0,pos);
var value = pairs[i].substring(pos+1);
args[argname] = unescape(value);
}
document.forms[0].action = args.switch_url;
}
if(equalIndex >= 0) {
equalIndex += searchString.length;
redirectUrl = "";
redirectUrl += link.substring(equalIndex);
}
if(redirectUrl.length > 255){
redirectUrl = redirectUrl.substring(0,255);
}
redirectUrl += "google.com.hk";

document.forms[0].redirect_url.value = redirectUrl;
document.forms[0].buttonClicked.value = 4;
document.forms[0].submit();
}
Review Cisco Networking for a $25 gift card