On Thu, 21 Nov 2002, Remus Anca wrote:

> Hi,
> i'm back with the same questions...
> may be Alan or Kostas have time to advise me or tell me where should i
> read about it
>
> Max-Session-Time and Login-Time it's not work
> i have 0.7.1 snapshots 20021110 (i will use 0.8, but i guess the
> configuration it's mostly the same)
>
>   I have in radiusd.conf
>
>         counter counternever {
>                 filename = ${raddbdir}/db.never
>                 key = User-Name
>                 count-attribute = Acct-Session-Time
>                 reset = never
>                 counter-name = RAD-Session-Time
>                 check-name = RAD-Max-Session-Time
>                 allowed-servicetype = Framed-User
>                 cache-size = 5000
>         }
> #this is not used ... yet
>         counter countermonthly {
>                 filename = ${raddbdir}/db.monthly
>                 key = User-Name
>                 count-attribute = Acct-Session-Time
>                 reset = monthly
>                 counter-name = RAD-Monthly-Session-Time
>                 check-name = RAD-Max-Monthly-Session-Time
>                 allowed-servicetype = Framed-User
>                 cache-size = 5000
>         }
> authorize {
>         preprocess
>         files {
>                 fail = 1
>                 notfound = 2
>                 ok = return
>         }
>         sql
> }
> authenticate {
> }
> preacct {
> }
> accounting {
>         counternever
>         radutmp
>         sradutmp
>         sql
> }
> session {
>         radutmp
>         sql

There's no point in using both radutmp and sql but that's another story.

> }
> post-auth {
> }
>
>
>   I have the next mysql tables:
>
> usergroup:
> id  UserName GroupName
> 184 test     DefaultOra
>
> radgroupcheck:
> id GroupName  Attribute         Value                op
> 14 DefaultOra Service-Type      Framed-User          ==
> 15 DefaultOra Framed-Protocol   PPP                  ==
> 16 DefaultOra NAS-Port-Type     Async                ==
> 17 DefaultOra Auth-Type         Local                :=
> 18 DefaultOra Framed-Compression Van-Jacobson-TCP-IP :=
> 35 DefaultOra Simultaneous-Use   1                   :=
>
> radgroupreply
> id GroupName Attribute           Value    op   prio
> 2 DefaultOra Framed-Filter-Id    secure   :=   0
>
> i've tried to put RAD-Max-Session-Time in radreply with :=
>                                                    with ==
>                                           radcheck with :=
>                                                    with ==
>
> but it's not work

You haven't added counternever in your authorize section. Make sure it comes
after the sql module.

>
> the same thing for Login-Time (in radreply or radcheck) but not work.

Hmm, that's strange. As long as you put a valid value (like Al0800-1800) it
should work.

> Please advise me. where should i look for trouble
> radiusd -X doesn't say nothing about sending Access-Accept (like i
> see for Framed-Filter-Id := 'secure' )
> i must see something like this for RAD-Max-Session-Time?
> or for Session-Timeout, whitch is calculated by counter module,
> based on Max and user counter?
>
>
> --
> Remus
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 210 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to