user group allowed just a specific device.

Alan DeKok aland at deployingradius.com
Wed Jul 26 16:09:12 CEST 2017


On Jul 26, 2017, at 10:07 AM, Kalil de A. Carvalho <kalilac at gmail.com> wrote:
> That is what I face it when I put your sugestion:
> 
> /etc/raddb/sites-enabled/default[78]: Parse error in condition
> elsif ((Packet-Src-IP-Address < 192.168.28.0/24) && (LDAP-Group ==
> 'AdmRedes')){
>                               ^ Failed to parse value for attribute
> 
> What am I doing wrong?

  Ah, sorry.. you need to cast it to a network... see "man unlang"

	if ((<ipv4prefix>Packet-Src-IP-Address < 192.168.28.0/24) ...

  Alan DeKok.



More information about the Freeradius-Users mailing list