Rejecting User By their Calling-Station-Id (Mac Address)
Alex M
freeradius at lrcommunications.net
Sat Dec 26 19:11:24 CET 2009
As suggested I just tried to replace operator = with := and even with ==
but reply message is not getting outputted :(
Maybe I'm missing something?
if (Calling-Station-Id == "%{sql: SELECT mac FROM `lrc_banlist` WHERE
mac='%{Calling-Station-Id}'}") {
reject
update reply{
Reply-Message := "Hello Hello Hello"
}
}
On Sat, Dec 26, 2009 at 12:08 PM, Alex M <freeradius at lrcommunications.net>wrote:
> lol true! I always use that one for reply messages... i guess i was too
> sleepy last night :(
> Thank you!
>
>
> On Sat, Dec 26, 2009 at 11:19 AM, Arran Cudbard-Bell <
> a.cudbard-bell at sussex.ac.uk> wrote:
>
>> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091226/7c38044f/attachment.html>
More information about the Freeradius-Users
mailing list