Hi, I just upgraded Freeradius 0.5 to freeradius-snapshot-20020521.
I altered the old radiusd.conf file to reflect some changes, and have
included SQLcounter module. I wish to limit access to users on a
three-month basis, but only some users, and this 3-month time is
individual.
What I did:
Raidusd.conf
sqlcounter monthlycounter {
counter-name = Monthly-Session-Time
check-name = Max-Monthly-Session
sqlmod-inst = sql
key = User-Name
reset = 3m
}
authorize {
preprocess
suffix
monthlycounter
sql
monthlycounter
}
accounting {
acct_unique
sql
radutmp
}
The user can log ok if there's nothing on table radcheck about Monthly Sessions. But
if I
insert a row like
username=surak
attribute=Max-Monthly-Session
value= 2000000 (Any)
op= ":=" without quotes, obviosly
The radius rejects the user with the following message on debug:
modcall: entering group authorize
modcall[authorize]: module "preprocess" returns ok
rlm_realm: Looking up realm NULL for User-Name = "surak"
rlm_realm: No such realm NULL
modcall[authorize]: module "suffix" returns noop
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
modcall[authorize]: module "monthlycounter" returns noop
Is there something missing on radreply? Could it be? If I drop that line from radcheck,
everything works fine.
Thanks for your help!
As opini�es formuladas neste e-mail s�o de car�ter
exclusivamente pessoal. Minha opini�o n�o necessariamente
representa a opini�o do meu Moto Grupo nem da empresa onde
trabalho.
Mene Sakkhet ur-seveh
Alexandre Ganso - Diretor Steel Goose Moto Group
6, 7 e 8 de setembro - Aniversario 10 anos Steel Goose - Ouro Branco - MG
500 Four Vermelha
[EMAIL PROTECTED]
ICQ# 3778773
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html