> > I am assuming this is done with rlm_count. How can I retrieve the
> > timelimit from ldap and use it in radius?
> 
>         counter {
>                 filename = ${raddbdir}/db.counter
>                 key = User-Name
>                 count-attribute = Acct-Session-Time
>                 reset = daily
>                 counter-name = Daily-Session-Time
>                 check-name = Max-Daily-Session
>                       ^^^^^^^^^^^^^^^^^^^^^^^^
>                 allowed-servicetype = Framed-User
>                 cache-size = 5000
>         }
> 
> Add an attribute like radiusMaxDailySession in your ldap schema (and in the
> radiusprofile aobjectclass). Also add it in ldap.attrmap like:
> 
> checkItem     Max-Daily-Session               radiusMaxDailySession
> 
> Then you can just set it to whatever value you wish for each user.

How can I assign the Max-Daily-Session value in the "raddb/users" file as 
a default for users that do not have this in their LDAP entry? Both of the 
following do not work:

DEFAULT 
        Max-Daily-Session = 1800,
        Reply-Message = "Default settings"

DEFAULT Max-Daily-Session = 1800
        Reply-Message = "Default settings"

Thanks,
Adi


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

Reply via email to