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

tnt at kalik.net tnt at kalik.net
Sat Dec 26 01:10:12 CET 2009


> I need to ask again for help.
> So I added this code to Autorize section of Default config file.... it
> blocks banned users well! But I need to tell them why they got banned so I
> tried diferent ways to add Reply-Message in the logic
> Nothing helped me so far...
>
> So maybe some one can tell me how to add reply-message to this logic?
>
> Thank you a lot and Marry Xmas
>
>
>
> if (Calling-Station-Id == "%{sql: SELECT mac FROM `banlist` WHERE
> mac='%{Calling-Station-Id}'}") {
>       reject

        update reply {
             Reply-Message = "Your account has been disabled."
        }

>       #reply := "Your account has been disabled."
>
> }


Ivan Kalik




More information about the Freeradius-Users mailing list