Help with executing accounting!
Mohamed Abdulla
mohamed.abdulla at acs.com.kw
Sat Mar 27 19:14:59 CET 2010
Sorry, I forgot to mention that I am using the FreeRadius from
freeradius.net, and I am using it on windows. I did not know it makes so
much a big difference! What Ipoque has implemented is indeed not a full
RADIUS implementation, but it can understand that Accounting Request sent to
it to extract the user data and traffic class before it applies the
configured rules of user traffic treatment. When I manually use radclient to
send the accounting request to ipoque (I fill a text file with sample data
of one user and use that with radclient), everything successfully works.
Then I wanted to do the same on the fly, where depending on the User-Name
and the fact that the user successfully authenticates, the radclient will
populate the Accounting Request data using that User-Name and the configured
attribute in the "users" file. I was hoping I could find similar script
which does the same or close to it. But I guess as Alan DeKok has
highlighted, I have to go through the scripts and Exec-Program-Wait pages
and try to find a way to do it as radclient doe not expand variables like
%{}. Is the 1.1.7 version, windows port supported here? Where can I find the
suggested scripts/exec-program-wait example?
----- Original Message -----
From: "Alan Buxey" <A.L.M.Buxey at lboro.ac.uk>
To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Sent: Saturday, March 27, 2010 8:31 PM
Subject: Re: Help with executing accounting!
> Hi,
>
>> 1. For each user wishing to authenticate with freeradius, I have added
>> two attributes in "users.conf" file. The first attribute is
>> "Framed-IP-Address", while the second is a VSA "ipoque-class".
>
> 'users' file
>
>> 2. When the user successfully authenticate with the freeradius, and
>> after the freeradius sends Access-Accept, I want the radclient.exe to
>> automatically send Accounting request to ipoque, including the following:
>> User-Name, Framed-IP-Address, Accounting-Status-Type= Start and
>> ipoque-class as configured in users.conf file. This should inform ipoque
>> device about the user IP and the class of that user in order to apply th
>> proper bandwidth rules for that user category.
>
> why cant the NAS send the thing to this ipoque box? oh well, if you
> want to use FreeRADIUS to do the work...
>
> simply call perl or python...or even exec...in the post-auth section of
> the FreeRADIUS server and get it to call radclient as you want it to
>
>> I have started by creating a test user in users.conf as follows:
>>
>> shafzeen Auth-Type := Local, User-Password == "1234"
>
> Cleartext-Password := "1234"
>
>
>
> ....or are you about to tell me you are using the ancient FreeRADIUS 1.1.7
> windows port?
>
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list