php - ceck client status

Marcin marcin at nicram.net
Tue Mar 31 09:01:23 CEST 2015


I've started status server and I'm doing something like this:

#v+
echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = Client,
Response-Packet-Type = Status-Client, User-Name = bobpppoe" | radclient -x
localhost:18121 status adminsecret
Sent Status-Server Id 228 from 0.0.0.0:54937 to 127.0.0.1:18121 length 60
        Message-Authenticator = 0x00
        FreeRADIUS-Statistics-Type = Client
        Response-Packet-Type = Status-Client
        User-Name = 'bobpppoe'
Received Access-Accept Id 228 from 127.0.0.1:18121 to 0.0.0.0:0 length 20
(0) -: Expected Status-Client got Access-Accept
#v-

How ask radius about user?


2015-03-31 7:22 GMT+02:00 Marcin <marcin at nicram.net>:

> In sites is status server. Can it answer about logged users?
> 30 mar 2015 21:42 "Marcin" <marcin at nicram.net> napisaƂ(a):
>
>> but freeradius stores loged user in radutmp. radwho shows who is logged
>> and I'd like to use in php.
>>
>>
>> 2015-03-30 21:35 GMT+02:00 Alan DeKok <aland at deployingradius.com>:
>>
>>> On Mar 30, 2015, at 3:32 PM, Marcin <marcin at nicram.net> wrote:
>>> > I'd like to avoid using any database. hence my question
>>>
>>>   FreeRADIUS is a RADIUS server.  It's not a database.
>>>
>>>   If you want to keep a database of users, put that information into a
>>> database.
>>>
>>>   Alan DeKok.
>>>
>>>
>>> -
>>> List info/subscribe/unsubscribe? See
>>> http://www.freeradius.org/list/users.html
>>>
>>
>>
>>
>> --
>> Pozdrawiam
>> Marcin / nicraM
>>
>


-- 
Pozdrawiam
Marcin / nicraM


More information about the Freeradius-Users mailing list