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@bristol.ac.uk Datum: 2010-jan-08 15:46 Till: "FreeRadius users mailing list"<freeradius-users@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@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