default attribute/group for res_mysql
Hi all, Is there any way to set a default group to all users that doesnt have any 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. Thanks
2012/1/30 Oğuzhan Kayhan <oguzhank@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. Or use unlang either in post-auth or authorize section to add attributes. See "man unlang", look for "update". -- Fajar
-----Original Message----- From: freeradius-users-bounces+oguzhank=bilkent.edu.tr@lists.freeradius.org [mailto:freeradius-users-bounces+oguzhank=bilkent.edu.tr@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@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
participants (2)
-
Fajar A. Nugraha -
Oğuzhan Kayhan