Dialup Admin NAS List

Kostas Kalevras kkalev at noc.ntua.gr
Tue Jan 16 10:53:09 CET 2007


Cory Robson wrote:

>
>I'm hoping someone may be able to assist in modifying the user_finger.php
>script to retrieve the list of NAS's for the online users from radacct
>table.
>  
>

Why not just use the nas table. In the cvs version of dialupadmin 
there's a file called lib/sql/nas_list.php3
It will read the nas table and get the nas list. You could try changing 
that one if it suits your needs.

>Basically instead of reading the text file and cycling through them to add
>the breakdown of NAS's I want to use something like 
>
>select DISTINCT NASIPAddress
>from radacct
>
>add them to an array and use the php gethostbyaddr() function to retrieve
>the true hostname to sort them by
>
>I don't need any of the snmp or NAS type or number of lines left as my
>upstream does not allow me to connect to verify the information anyway .
>
>This should just be a quick change for someone more talented than I to
>remove the existing loop and replace it with the relevant sql loop instead.
>
>Anyone ? 
> 
> 
>
>
>
>
>- 
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>  
>




More information about the Freeradius-Users mailing list