Security

Reply
Contributor I
Posts: 31
Registered: ‎02-18-2015

Is it possible to customize the error message after failed authentication

I am trying to pass a custom Post Authentication error message to my guest captive portal after the user fails to authenticate due to a session time restriction.  Right now if a user logs in with a valid/active guest account  during a restricted time period (i.e. no access).  He gets the normal error message "Invalid user name or password".  This is not really an accurate error message since the user name and password are valid.  

 

What I would like to be able to do here is give an error message that reads "Your account is restricted at this time".  I found radius attribute which can be used for this purpose and while it works for the access tracker logs it does not reflect in the captive portal login error message.

Radius:IETF:Reply-Message'Account testuser@testco.com is restricted'

I am guessing the right way to do this is by customizing the error messages shown in the CPGuest Weblogins > my page > header HTML.   

 

THis is form the HTML header in CPGuest... The options are there...  But I am not sure how I am supposed to trigger the right "$StatusCode" value (??)  Has anyone figured out how to do this from an enforcement profile on CPPM? 

 

{nwa_cookiecheck}
{if $statusCode == 1}
{nwa_icontext type=info}
You are already logged in.
No further action is required on your part.
{/nwa_icontext}
{elseif $statusCode == 2}
{nwa_icontext type=warn}
You are not configured to authenticate against web portal.
No further action is required on your part.
{/nwa_icontext}
{elseif $statusCode == 3}
{nwa_icontext type=error}
The username specified cannot be used at this time.
Perhaps you are already logged into the system?
{/nwa_icontext}
{elseif $statusCode == 4}
{nwa_icontext type=error}
You cannot log in at this time.
{/nwa_icontext}
{elseif $statusCode == 5}
{nwa_icontext type=error}
Invalid username or password. Please try again.
{/nwa_icontext}
{/if}

Guru Elite
Posts: 19,995
Registered: ‎03-29-2007

Re: Is it possible to customize the error message after failed authentication

It is not possible today to customize the message, no.  Please submit your idea to the ideas portal.

Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Validated Reference Design Guides : http://community.arubanetworks.com/t5/Validated-Reference-Design/tkb-p/Aruba-VRDs
Contributor I
Posts: 31
Registered: ‎02-18-2015

Re: Is it possible to customize the error message after failed authentication

Thanks for that confirmation CJoseph.  I will submit this to the ideas portal. 

Search Airheads
Showing results for 
Search instead for 
Did you mean: