Ang: Re: Does FreeRadius support different replies for same uservia check-attributes?

Gabriel Blanchard gabe at teksavvy.ca
Fri Jan 8 16:53:30 CET 2010


we have about 60,000 users and having if-statements for every single one of them is not a problem...

On 2010-01-08, at 10:50 AM, Tobbe & Millan wrote:

> Thanks!
> 
> Can "unlang" be used directly when reply attribute is set?
> I do not want to have a if-statement for each user. It would cause
> problems if I have hundreds of users...
> 
> My hopes was that in mySQL (which I'm using) I could have 2 check
> attributes (for Go1 and Go2) and then directly set the corresponding
> service in a value in the "radreply" table.
> 
> Could unlang be used in a common way for all users?
> 
> Best regards,
> 
> Tobian
> 
> ----Ursprungligt meddelande----
> Från: jjj.hooper at bristol.ac.uk
> Datum: 2010-jan-08 15:46
> Till: "FreeRadius users mailing list"<freeradius-users at lists.
> freeradius.org>
> Ärende: Re: Does FreeRadius support different replies for same user    
> via     check-attributes
> 
> 
> 
> --On Friday, January 08, 2010 03:35:00 PM +0100 Tobbe & Millan
> <ejp252l at tninet.se> wrote:
> 
> > Hi!
> >
> > I would like a specific request item to set which attribute to
> reply.
> >
> > For example...
> > IF;
> > A request comes with User-Name: "XXX",  Password: "YYY" and
> Attribute
> > A = "Go1"
> > The Access-Accept should include Attribute Go="Service1"
> > BUT IF;
> > A request comes with User-Name: "XXX",  Password: "YYY" and
> Attribute
> > A = "Go2"
> > The Access-Accept should include Attribute Go="Service2"
> >
> > Is this possible?
> 
> It is.
> <http://freeradius.org/radiusd/man/unlang.html>
> 
> 
> -James
> 
> --
> James J J Hooper
> Network Specialist
> Information Services
> University of Bristol
> http://www.wireless.bristol.ac.uk               http://www.jamesjj.net
> --
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.
> org/list/users.html
> 
> 
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 





More information about the Freeradius-Users mailing list