On Tue, Mar 13, 2012 at 6:41 PM, Fajar A. Nugraha <l...@fajar.net> wrote:
> On Tue, Mar 13, 2012 at 6:32 PM, Franz <flam...@gmail.com> wrote:
>> Thank you Fajar, I am using mysql, i will play arround with the queries.
>
> I might not be clear-enough in my last reply.
>
> You should NOT need to alter any existing queries. Instead, you need
> to ADD new queries in ldap virtual server to get the user group.
> Something like
>
> update control {
>     Sql-Group = "%{SELECT groupname FROM radusergroup where ...}"
> }
>
> if ( Sql-Group == "my-special-group" ) {
>     update reply {
>         DHCP-IP-Address-Lease-Time := 60
>     }
> }
>
>
> Now the above is just an example, which won't work, since the query is
> a dummy one. I'm not sure what kind of group checking you can do in
> LDAP. Do you group them based on MAC address, for example?

It should be "I'm not sure what kind of group checking you can do in DHCP".

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

Reply via email to