Security

Reply
Occasional Contributor I
Posts: 14
Registered: ‎03-20-2015

How to Write an Ajax Code in the Login page to read the Unique Device Count from the Endpoint.

[ Edited ]

Hi Team,

 

Any one has any idea if we can write an Ajax Code in the Login page that will return the Unique device count Value from the Endpoint and if it equals a certain value the Login page will display a message (for example: This Mobile Number is already registered with another device).

 

The Case is that the customer allow the user to register his mobile number with one device and if he/she tried to use the same credentials on another device the login page will prompt him/her a message.

 

 

Zahran,
ACCP,ACMP,ASE
MVP
Posts: 933
Registered: ‎04-13-2009

Re: How to Write an Ajax Code in the Login page to read the Unique Device Count from the Endpoint.

How about thinking about this problem in another way.

 

You could just enforce that the guest username is their phone number and restrict the session limit to 1.

Cheers
James

-------------------------------------------------------
-------------------@whereisjrw-------------------
------------------------blog-------------------------
ACCX #540 | ACMX #353 | ACDX #216
-----------Mobility First Expert #11----------
-------------------------------------------------------

If a reply adequately addresses your issue, please click on the "Accept as Solution" and "Give Kudos" button so this information can benefit other users via search.
Guru Elite
Posts: 20,582
Registered: ‎03-29-2007

Re: How to Write an Ajax Code in the Login page to read the Unique Device Count from the Endpoint.


Interceptor wrote:

Hi Team,

 

Any one has any idea if we can write an Ajax Code in the Login page that will return the Unique device count Value from the Endpoint and if it equals a certain value the Login page will display a message (for example: This Mobile Number is already registered with another device).

 

The Case is that the customer allow the user to register his mobile number with one device and if he/she tried to use the same credentials on another device the login page will prompt him/her a message.

 

 


If your goal is to notify a guest user that he has exceeded his limit, starting in ArubaOS 6.5.0.0 you can customize the "Reply-Message" radius attribute which will send a message to users upon rejection or successful authentication:  http://www.arubanetworks.com/techdocs/ArubaOS/6.5.x.x/Default.htm#ReleaseNotes/FeaturesIn6.5.xReleases/Features6.5.x.htm?Highlight=Reply-Message.

 

You can send the Reply-Message attribute in both successful:

Screenshot 2016-11-10 at 06.28.19.png

 

..and unsuccessful radius authentication:

Screenshot 2016-11-10 at 06.29.13.png

 

This will add better context to rejects as well as successful authentications to Captive Portal.

 

You can even debug what is sent:

config t

logging level debugging system process httpd subcat webserver

 

For Auth Failure Logs from System Process

Nov 4 02:49:16 :32674: <399828> <DBUG> |httpd| |webserver| aruba-login.c:612) User:2001:470:ed6c:0:a9ac:30c0:359e:903c - Auth result 1 reason Authentication failed, as password is wrong on server1

 

For Auth Success Logs from System Process

Nov 4 02:53:09 :922: <399828> <DBUG> |httpd| |webserver| aruba-login.c:740) User:2001:470:ed6c:0:a9ac:30c0:359e:903c - Internal welcome success message User has authenticated successfully from first server1



Colin Joseph
Aruba Customer Engineering

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

Occasional Contributor I
Posts: 14
Registered: ‎03-20-2015

Re: How to Write an Ajax Code in the Login page to read the Unique Device Count from the Endpoint.

Thanks a lot that makes sense. Please do you have any idea from where i can customize it. Is its from Cleaprass: "Radius:IETF:Reply-Message" ? Or there is some options in the controller?
Zahran,
ACCP,ACMP,ASE
Occasional Contributor I
Posts: 14
Registered: ‎03-20-2015

Re: How to Write an Ajax Code in the Login page to read the Unique Device Count from the Endpoint.

Thanks a lot that makes sense. Please do you have any idea from where i can customize it. Is its from Cleaprass: "Radius:IETF:Reply-Message" ? Or there is some options in the controller? Zahran, ACCP,ACMP,ASE
Zahran,
ACCP,ACMP,ASE
Search Airheads
Showing results for 
Search instead for 
Did you mean: