Using DHCP

Fajar A. Nugraha list at fajar.net
Tue Mar 13 12:41:57 CET 2012


On Tue, Mar 13, 2012 at 6:41 PM, Fajar A. Nugraha <list at fajar.net> wrote:
> On Tue, Mar 13, 2012 at 6:32 PM, Franz <flamana at 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


More information about the Freeradius-Users mailing list