LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   what and how should i use counter on freeradius in this config (login-time) (https://www.linuxquestions.org/questions/linux-server-73/what-and-how-should-i-use-counter-on-freeradius-in-this-config-login-time-949357/)

alieblice 06-09-2012 07:34 AM

what and how should i use counter on freeradius in this config (login-time)
 
Hi
problem : it's not giving a "Session-Timeout"

I'm installed free radius and connect it to squid and put this config on users file it work's fine with squid but it's not giving a "Session-Timeout" , after searching a lot i found that i should use a counter but i couldn't understand what kind of counter should i use(dayly, monthy, ...) an how ?
I'm really beginner on freeradius

Code:

"alice" Cleartext-Password := "passme", login-time := "Sa0200-0209"
        Reply-Message = "Hello, %{User-Name}"


alieblice 06-09-2012 10:02 AM

i changed the configuration to somthing different its not working . i think i miss somthing here :


problem : daily counter not working
i have squid connected to freeradius and
i did this config on users file of freeradius
Code:

"alice" Cleartext-Password := "passme", Max-Daily-Session :="100"
        Reply-Message = "Hello, %{User-Name}"

and uncomment daily in accounting and authorize section of sites-enabled/default file of freeradius and uncommented the daily in instantiate section of radiusd.conf and added this to moduls/counter
Code:

counter daily {
        filename = ${db_dir}/db.daily
        key = User-Name
        count-attribute = Acct-Session-Time
        reset = daily
        counter-name = Daily-Session-Time
        check-name = Max-Daily-Session
        reply-name = Session-Timeout
        allowed-servicetype = Framed-User
        cache-size = 5000
        return-attribute = Session-Timeout
        }

but after 100 second the user doesn't disconnect and noting wrote in output of radius -X command

any help is really appreciated


All times are GMT -5. The time now is 06:56 AM.