11-21-2012 02:39 AM - edited 07-03-2021 11:05 PM
Hi all,
I'm trying to set up web authentication against radius (freeradius). My goal is that I have blocked users and i would like to difference them from invalid users.
When a blocked user tries to logon, the radius replies an acces-reject message with a reply-message indicating that this user is blocked.
My problem is that i'm not able to display this message on the login page and the status code is the same as for invalid users (statuscode=5)
Is there anyway to display the reply-message from the radius on the login page?
Thanks,
Marga
11-21-2012 05:54 AM
You can change the verbiage on the status code 5 to what ever you want it to state in the html code. For example:
else if(args.statusCode == 5){
alert("The User Name and Password combination you have entered is invalid or has been blocked.");
Thanks,
Scott
Help out other by using the rating system and marking answered questions as "Answered"
11-21-2012 07:12 AM
Thank you for your answer but actually this is what i'm trying to avoid. I would like to inform about the real reason so I need to display the reply-message from the radius.
11-21-2012 07:17 AM
You can't have two of the same status code. Unless you can send back a different status code like status code 6, your stuck at one statement.
Sent from Cisco Technical Support iPhone App
11-21-2012 10:35 AM
And do you know how can i generate a different statuscode? I've been looking the documentation but all I found are those five status codes (which i suppose are generated by the wlc)
11-21-2012 10:38 AM
There is no configuration on the WLC to be able to add another status code. I was thinking you said that your radius sent back the status code and that is why I said what I said.
Thanks,
Scott
Help out other by using the rating system and marking answered questions as "Answered"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide