Hi Alan.
I've been trying to understand some things on the code and the problem
is on the function pam_private_session on the block:
if (status == PW_STATUS_START) {
session_time = time(NULL);
} else {
add_int_attribute(request, PW_ACCT_SESSION_TIME, time(NULL) - session_time);
}
The problem is that session_time loses its inicial value (from the
start packet).
Do you have any suggestion to correct this?
Kindly Bruno Sousa
On Apr 5, 2005 6:27 PM, Alan DeKok <[EMAIL PROTECTED]> wrote:
> Bruno Sousa <[EMAIL PROTECTED]> wrote:
> > My problem is that on a accounting packet the Stop hasn't the correct
> > Acct-Session-Time. The value that is passed from the pam module is the
> > difference between a date like 1970-01-01 and the date 2005-04-04.
>
> That shouldn't be happening. It should be the *interval* between
> the login, and current time.
>
> I'm not sure why that's happening. I suggest reading the source code.
>
> Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html