Use passwd for MAC filtering?

Alan DeKok aland at deployingradius.com
Mon Apr 28 13:40:31 CEST 2008


Wolfgang Burger wrote:
...
> Then, in sites-enabled/default:
...
>    if ( mac-add != Calling-Station-ID ) {

  That won't work.  See "man unlang".  The right hand side of an
comparison CANNOT be a reference to an attribute.  It MUST be something
else.  e.g.

	if (mac-add != "%{Calling-Station-Id}") {
		...

  The reason is that it's perfectly fine to do: if (foo == 1)
And '1' is obviously not an attribute...

  Alan DeKok.



More information about the Freeradius-Users mailing list