Rejecting User By their Calling-Station-Id (Mac Address)
Alex M
freeradius at lrcommunications.net
Sat Dec 26 02:52:36 CET 2009
o no wonder all my trys didnt work =)
Thanks a lot!
On Fri, Dec 25, 2009 at 7:10 PM, <tnt at kalik.net> wrote:
> > 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
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091225/95779f93/attachment.html>
More information about the Freeradius-Users
mailing list