On Fri, 24 Aug 2001 [EMAIL PROTECTED] wrote:

>   The only problem here is that it doesn't update the Session-Time
> attribute.  So once they've logged, they can stay in as long as they
> want.

No, it WILL update the Session-Timeout attribute. Take a look at the code
around line 530:

/*
 * If we are near a reset then add the next limit, so that the user will
 * not need to login again
 */

if (res >= (data->reset_time - request->timestamp))
res += check_vp->lvalue;

DEBUG2("rlm_counter: (Check item - counter) is greater than zero");
if ((reply_item = pairfind(request->reply->vps, PW_SESSION_TIMEOUT)) != NULL) {
        if (reply_item->lvalue > res)
        reply_item->lvalue = res;
} else {
        if ((reply_item = paircreate(PW_SESSION_TIMEOUT, PW_TYPE_INTEGER)) == NULL) {
                radlog(L_ERR|L_CONS, "no memory");
                return RLM_MODULE_NOOP;
        }
        reply_item->lvalue = res;
        pairadd(&request->reply->vps, reply_item);
}


--
kkalev



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

Reply via email to