@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:

..and unsuccessful radius authentication:

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