osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Re: NOT writing wtmp record - msg#00036

List: gnu.radius.general

Date: Prev Next Index Thread: Prev Next Index
--On Donnerstag, 18. März 2004 16:57 Uhr +0200 Sergey Poznyakoff <gray@xxxxxxxxxxxxxxxxxx> wrote:

The guys running the Shivas argue that our RADIUS should use the
session ID in order to match accounting requests to access
requests. Could that be done with a rewrite function?

Yes, here's the algorithm:

Thank you very much, that works fine.

Kind regards, Sebastian Hagedorn
--
Sebastian Hagedorn M.A. - RZKR-R1 (Gebäude 52), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: NOT writing wtmp record

Sebastian Hagedorn <Hagedorn@xxxxxxxxxxxx> wrote: > The guys running the Shivas argue that our RADIUS should use the > session ID in order to match accounting requests to access > requests. Could that be done with a rewrite function? Yes, here's the algorithm: 1. If your radius runs only accounting and the NASes never send meaningful User-Name attributes, then the following line in raddb/hints will suffice: # raddb/hints DEFAULT Replace-User-Name = "%C{Acct-Session-Id}" NULL 2. Otherwise, use the following approach. Create a file with the following contents: integer foo() { if (%[User-Name] == "" && *%[Acct-Session-Id]) %[Orig-User-Name] = %[Acct-Session-Id]; else %[Orig-User-Name] = %[User-Name]; return 0; } For the sake of example I assume you save it in /some/path/foo.rw To the `rewrite' section of your raddb/config add the following statement: load "/some/path/foo.rw"; To your raddb/hints add the following: DEFAULT Rewrite-Function = foo Fall-Through = Yes DEFAULT Replace-User-Name = "%C{Orig-User-Name}" NULL Regards, Sergey

Next Message by Date: click to view message preview

Design document/Source code documentation

Can anyone help me with the design or source code documentation of gnu-radius.Though I have gone through the available manual ,I coulnt find any details of how the various files in source code are designed.Any help will be highly appreciated. Thanks Pallavi

Previous Message by Thread: click to view message preview

Re: NOT writing wtmp record

Sebastian Hagedorn <Hagedorn@xxxxxxxxxxxx> wrote: > The guys running the Shivas argue that our RADIUS should use the > session ID in order to match accounting requests to access > requests. Could that be done with a rewrite function? Yes, here's the algorithm: 1. If your radius runs only accounting and the NASes never send meaningful User-Name attributes, then the following line in raddb/hints will suffice: # raddb/hints DEFAULT Replace-User-Name = "%C{Acct-Session-Id}" NULL 2. Otherwise, use the following approach. Create a file with the following contents: integer foo() { if (%[User-Name] == "" && *%[Acct-Session-Id]) %[Orig-User-Name] = %[Acct-Session-Id]; else %[Orig-User-Name] = %[User-Name]; return 0; } For the sake of example I assume you save it in /some/path/foo.rw To the `rewrite' section of your raddb/config add the following statement: load "/some/path/foo.rw"; To your raddb/hints add the following: DEFAULT Rewrite-Function = foo Fall-Through = Yes DEFAULT Replace-User-Name = "%C{Orig-User-Name}" NULL Regards, Sergey

Next Message by Thread: click to view message preview

Download problem

hi!! I am not able to download the latest release of GNU Radius.The urls which I am visiting for download are: 1. ftp://ftp.gnu.org/gnu/radius/radius-1.2.tar.bz2 2. http://ftp.gnu.org/gnu/radius/radius-1.2.tar.gz Even the web pages under software section are unaccessible. Kindly tell the alternate URL for the same. Thanks Pallavi
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by