Hello Dmitry,

Probably the best way to handle this kind of thing is to use the radius Class
attribute. If you set the Class attribute in the reply to an access request,
then the NAS will send that same string back in the Class attribue for the
accounting requests.

Then you can use
<Handler Class=whatever>
to choose how to handle each category of accounting request

Hope that helps.

BTW, it would be helpful if you did not post HTML to the list: not everyone
uses HTML mail agents.

Cheers.



On Dec 23,  4:31pm, Dmitry Niqiforoff wrote:
> Subject: (RADIATOR) Accounting question..
>
> [ Attachment (text/plain): 950 bytes
>   Character set: koi8-r
>   plain text ]
>-- End of excerpt from Dmitry Niqiforoff


Hello!

  Is there a way to select different handlers based on an information,
retrieved from a database? For example, I have a database table where
usernames, passwords and groups info stored. I need to use group the
user belongs to to select different accounting method. For example,
there is a user in "users" group, I need to store accounting into
"radacct" table without any changes, and there is user in group
"timed", and I need to store his accounting info into "radacct" table
too AND to decrement his "timebank" field, stored in another table, by
"Acct-Output-Octets", when his session ends.
  Any suggestions?

  Thanks in advance!

--


-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to