Rejecting User By their Calling-Station-Id (Mac Address)

Arran Cudbard-Bell a.cudbard-bell at sussex.ac.uk
Sat Dec 26 17:19:56 CET 2009


On 26/12/2009 08:05, Alex M wrote:
> Ok I still having trouble with this. Here is  my code:
>
> ========================================================================================
>     if (Calling-Station-Id == "%{sql: SELECT mac FROM `lrc_banlist`
> WHERE mac='%{Calling-Station-Id}'}") {
>              reject
>        
>         update reply {
>                     Reply-Message = "Hello Hello Hello"
>            }
>
>      }

Wrong operator.

You want := to overwrite the attribute value that already exists...

    update reply {
                    Reply-Message := "Hello Hello Hello"
           }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091226/2d92a951/attachment.pgp>


More information about the Freeradius-Users mailing list