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

2009-12-27 Thread zhongwei feng
hi , try to exchange sequece ?    if (Calling-Station-Id == %{sql: SELECT mac FROM `lrc_banlist` WHERE mac='%{Calling-Station-Id}'}) { update reply{ Reply-Message := Hello Hello Hello } reject } - List

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

2009-12-27 Thread Alex M
Yes that helped =) Thank you! 2009/12/27 zhongwei feng feng...@gmail.com hi , try to exchange sequece ? if (Calling-Station-Id == %{sql: SELECT mac FROM `lrc_banlist` WHERE mac='%{Calling-Station-Id}'}) { update reply{ Reply-Message := Hello

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

2009-12-26 Thread Alex M
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 {

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

2009-12-26 Thread Arran Cudbard-Bell
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}'}) {

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

2009-12-26 Thread Alex M
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{

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

2009-12-26 Thread Arran Cudbard-Bell
On 26/12/2009 10:11, Alex M wrote: As suggested I just tried to replace operator = with := and even with == but reply message is not getting outputted :( Maybe I'm missing something? Try moving the reject to after the update stanza. I think a return code of reject stops the server processing

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

2009-12-26 Thread Alex M
that worked well! thank you I guess once reject is sent there is no further processing of the code. On Sat, Dec 26, 2009 at 1:16 PM, Arran Cudbard-Bell a.cudbard-b...@sussex.ac.uk wrote: On 26/12/2009 10:11, Alex M wrote: As suggested I just tried to replace operator = with := and even

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

2009-12-26 Thread Arran Cudbard-Bell
On 26/12/2009 11:23, Alex M wrote: that worked well! Good :) thank you I guess once reject is sent there is no further processing of the code. Yeah similar behaviour to handled. It's why you have to override the return codes of modules if you want to do additional processing after a reject.

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

2009-12-25 Thread Alex M
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

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

2009-12-25 Thread tnt
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

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

2009-12-25 Thread Alex M
o no wonder all my trys didnt work =) Thanks a lot! On Fri, Dec 25, 2009 at 7:10 PM, t...@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

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

2009-12-16 Thread Alan DeKok
Alex M wrote: Well i guess i'm back to my problem :( I tried group thing and i'm getting som strange un-constant results :( Can some one tell me how the logic works for groupcheck? Why? You were given a simple solution. I suggest trying that. Trying to figure out how to get groups to do

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

2009-12-16 Thread Alex M
ok fair enough =) will go dig config file... How can I send the reason for rejection? Just add reply command somewhere along the lines? Can I link reply message to the reply message associated with reply in groups? Tnx again! On Wed, Dec 16, 2009 at 3:25 AM, Alan DeKok

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

2009-12-15 Thread Alex M
wow... i managed to make it work w/ groups but i like your way better =) Thank you! On Tue, Dec 15, 2009 at 2:36 AM, Alan DeKok al...@deployingradius.comwrote: Alex M wrote: Hey all, i'm coming back here w/ my old question of how to reject users based on their MAC address... but now im

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

2009-12-15 Thread Alex M
Well i guess i'm back to my problem :( I tried group thing and i'm getting som strange un-constant results :( Can some one tell me how the logic works for groupcheck? If I have Calling-Station-Id and reply reject spesified for the same user what should happen? what if i have 100 MAC addressed

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

2009-12-14 Thread Alex M
Hey all, i'm coming back here w/ my old question of how to reject users based on their MAC address... but now im running FR 2.x.x So, we have trial access for free, and some people figured that they can re-register new accounts for trial all over again and have fun this way. Well thats not fun

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

2009-12-14 Thread Alan DeKok
Alex M wrote: Hey all, i'm coming back here w/ my old question of how to reject users based on their MAC address... but now im running FR 2.x.x So, we have trial access for free, and some people figured that they can re-register new accounts for trial all over again and have fun this way.