It's look like a bug...

radwho shows whole 8 chars in username.
but radlast - 7 chars only.

This is not system 'last` bug.
The same user, wtmp'ed via system (login-logout locally)
looks with whole 8 chars in his username.

Is something wrong in rlm_unix?

I have
#define UT_NAMESIZE     8
in /usr/include/utmp.h
But in system-wide wtmp file all names looks good. Why?

May be /usr/bin/last add '\0' after last symbol of username before
printing? So we can have 8 significant chars in username?
if so may be fix strNspy in

case PW_USER_NAME:
            strNcpy(ut.ut_name, (char *)vp->strvalue, sizeof(ut.ut_name));

to strncpy?


Mike.



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

Reply via email to