DHCP-Hostname + module/dhcp

Jorge Pereira jpereiran at gmail.com
Wed Apr 15 19:04:00 CEST 2015


Arran,

   awesome solution, thanks so much! :)



--
Jorge Pereira

On Wed, Apr 15, 2015 at 12:23 PM, Arran Cudbard-Bell <
a.cudbardb at freeradius.org> wrote:

>
> >   Thanks for answer! btw, I would like to know if have some way to do
> that
> > using something like a foreach(). do have idea if is possible?
>
> There's foreach, yes.
>
> foreach &Alc-ToServer-Dhcp-Options {
>         update request {
>                 Tmp-Octets-0 := "%{Foreach-Variable-0}"
>         }
>         if (&Tmp-Octets-0 && ("%{dhcp_options:&Tmp-Octets-0}" == 0)) {
>                 update reply {
>                         Reply-Message := 'Failed decoding DHCP options'
>                 }
>                 invalid
>         }
> }
>
> Might need to add 0x in front of %{Foreach-Variable-0}.
>
> -Arran
>
> Arran Cudbard-Bell <a.cudbardb at freeradius.org>
> FreeRADIUS development team
>
> FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>


More information about the Freeradius-Users mailing list