default attribute/group for res_mysql

Oğuzhan Kayhan oguzhank at bilkent.edu.tr
Mon Jan 30 00:22:17 CET 2012


 

-----Original Message-----
From: freeradius-users-bounces+oguzhank=bilkent.edu.tr at lists.freeradius.org
[mailto:freeradius-users-bounces+oguzhank=bilkent.edu.tr at lists.freeradius.or
g] On Behalf Of Fajar A. Nugraha
Sent: Monday, January 30, 2012 12:28 AM
To: FreeRadius users mailing list
Subject: Re: default attribute/group for res_mysql

2012/1/30 Oğuzhan Kayhan <oguzhank at bilkent.edu.tr>:
> group , or any way of assigning an attribute to all users by default.
>
> As i read on previous mails DEFAULT parameter does not work for mysql
users.

You should be able to use files and DEFAULT keyword. See /etc/raddb/users
and "man 5 users". If you use it together with mysql, both mysql and users
file should add the necessary attribute.


----------------------------------------------
Hi,
Actually, my "files" is enabled with sql on enabled site config.
And i got DEFAULT Group=="test" on users file.
But did not work.

I wil try unlang too.
Thanks.
------------------------------------------------





Or use unlang either in post-auth or authorize section to add attributes.
See "man unlang", look for "update".

--
Fajar

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html





More information about the Freeradius-Users mailing list