<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: External Web Auth - Login failure status in Wireless</title>
    <link>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040260#M219918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure this is in the html code.  Also I have noticed that when the webauth page opens on a browser, you have to allow active x or else the scripts will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function loadAction(){&lt;/P&gt;&lt;P&gt;      var url = window.location.href;&lt;/P&gt;&lt;P&gt;      var args = new Object();&lt;/P&gt;&lt;P&gt;      var query = location.search.substring(1);&lt;/P&gt;&lt;P&gt;      var pairs = query.split("&amp;amp;");&lt;/P&gt;&lt;P&gt;      for(var i=0;i&lt;PAIRS.LENGTH&gt;&lt;/PAIRS.LENGTH&gt;&lt;/P&gt;&lt;P&gt;          var pos = pairs[i].indexOf('=');&lt;/P&gt;&lt;P&gt;          if(pos == -1) continue;&lt;/P&gt;&lt;P&gt;          var argname = pairs[i].substring(0,pos);&lt;/P&gt;&lt;P&gt;          var value = pairs[i].substring(pos+1);&lt;/P&gt;&lt;P&gt;          args[argname] = unescape(value);&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      //alert( "AP MAC Address is " + args.ap_mac);&lt;/P&gt;&lt;P&gt;      //alert( "The Switch URL is " + args.switch_url);&lt;/P&gt;&lt;P&gt;      document.forms[0].action = args.switch_url;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      // This is the status code returned from webauth login action&lt;/P&gt;&lt;P&gt;      // Any value of status code from 1 to 5 is error condition and user&lt;/P&gt;&lt;P&gt;      // should be shown error as below or modify the message as it suits&lt;/P&gt;&lt;P&gt;      // the customer&lt;/P&gt;&lt;P&gt;      if(args.statusCode == 1){&lt;/P&gt;&lt;P&gt;        alert("You are already logged in. No further action is required on your part.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 2){&lt;/P&gt;&lt;P&gt;        alert("You are not configured to authenticate against web portal. No further action is required on your part.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 3){&lt;/P&gt;&lt;P&gt;        alert("The username specified cannot be used at this time. Perhaps the username is already logged into the system?");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 4){&lt;/P&gt;&lt;P&gt;        alert("Wrong username and password. Please try again.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 5){&lt;/P&gt;&lt;P&gt;        alert("The User Name and Password combination you have entered is invalid. Please try again.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2008 13:16:59 GMT</pubDate>
    <dc:creator>Scott Fella</dc:creator>
    <dc:date>2008-10-09T13:16:59Z</dc:date>
    <item>
      <title>External Web Auth - Login failure status</title>
      <link>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040259#M219915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've setup a external web auth page to work with our WiSM and if you enter the correct login details, it allows the user onto the WLAN as planned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the user details are incorrect, it just returns you back to the external web auth page - but does not return with any status codes, as are available when using custom internal auth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means I can't tell users what they have done wrong (invalid credentials, already logged in elsewhere etc...) and I need to be able to offer more help than that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this by design, or have I missed something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on version 5.0.148.2&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 23:35:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040259#M219915</guid>
      <dc:creator>philclowes</dc:creator>
      <dc:date>2021-07-03T23:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: External Web Auth - Login failure status</title>
      <link>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040260#M219918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure this is in the html code.  Also I have noticed that when the webauth page opens on a browser, you have to allow active x or else the scripts will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function loadAction(){&lt;/P&gt;&lt;P&gt;      var url = window.location.href;&lt;/P&gt;&lt;P&gt;      var args = new Object();&lt;/P&gt;&lt;P&gt;      var query = location.search.substring(1);&lt;/P&gt;&lt;P&gt;      var pairs = query.split("&amp;amp;");&lt;/P&gt;&lt;P&gt;      for(var i=0;i&lt;PAIRS.LENGTH&gt;&lt;/PAIRS.LENGTH&gt;&lt;/P&gt;&lt;P&gt;          var pos = pairs[i].indexOf('=');&lt;/P&gt;&lt;P&gt;          if(pos == -1) continue;&lt;/P&gt;&lt;P&gt;          var argname = pairs[i].substring(0,pos);&lt;/P&gt;&lt;P&gt;          var value = pairs[i].substring(pos+1);&lt;/P&gt;&lt;P&gt;          args[argname] = unescape(value);&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      //alert( "AP MAC Address is " + args.ap_mac);&lt;/P&gt;&lt;P&gt;      //alert( "The Switch URL is " + args.switch_url);&lt;/P&gt;&lt;P&gt;      document.forms[0].action = args.switch_url;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      // This is the status code returned from webauth login action&lt;/P&gt;&lt;P&gt;      // Any value of status code from 1 to 5 is error condition and user&lt;/P&gt;&lt;P&gt;      // should be shown error as below or modify the message as it suits&lt;/P&gt;&lt;P&gt;      // the customer&lt;/P&gt;&lt;P&gt;      if(args.statusCode == 1){&lt;/P&gt;&lt;P&gt;        alert("You are already logged in. No further action is required on your part.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 2){&lt;/P&gt;&lt;P&gt;        alert("You are not configured to authenticate against web portal. No further action is required on your part.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 3){&lt;/P&gt;&lt;P&gt;        alert("The username specified cannot be used at this time. Perhaps the username is already logged into the system?");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 4){&lt;/P&gt;&lt;P&gt;        alert("Wrong username and password. Please try again.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;      else if(args.statusCode == 5){&lt;/P&gt;&lt;P&gt;        alert("The User Name and Password combination you have entered is invalid. Please try again.");&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 13:16:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040260#M219918</guid>
      <dc:creator>Scott Fella</dc:creator>
      <dc:date>2008-10-09T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: External Web Auth - Login failure status</title>
      <link>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040261#M219921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I've given that a go and it didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, that Javascript is breaking up the arguments returned on the URL - and statusCode is not included in those. Only switch_url, ap_mac and wlan are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I switch to internal custom auth, statusCode is included if I submit invalid credentials.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 13:39:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040261#M219921</guid>
      <dc:creator>philclowes</dc:creator>
      <dc:date>2008-10-09T13:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: External Web Auth - Login failure status</title>
      <link>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040262#M219922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not tried it on the 5.0 train.  I know it has worked for me on the past with 4.1.185 though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 13:43:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/external-web-auth-login-failure-status/m-p/1040262#M219922</guid>
      <dc:creator>Scott Fella</dc:creator>
      <dc:date>2008-10-09T13:43:47Z</dc:date>
    </item>
  </channel>
</rss>

