(RADIATOR) Spurious "User has no time left"

Miguel A.L. Paraz map at internet.org.ph
Wed Aug 15 02:47:12 CDT 2001


Radiator 2.18:

Wed Aug 15 15:26:06 2001: DEBUG: Query is: select ENCRYPTEDPASSWORD, STATICADDRESS, TIMELEFT, MAXLOGINS, FRAMED_NETMASK, FRAMED_FILTER_ID from RADUSERS where USERNAME='access15' and VALIDFROM < 997860366 and VALIDTO > 997860366

Wed Aug 15 15:26:06 2001: DEBUG: User access15 has no time left
Wed Aug 15 15:26:06 2001: DEBUG: do query is: insert into RADMESSAGES (TIME_STAMP, TYPE, MESSAGE) values (997860366, 4, 'User access15 has no time left')

But 'access15' has TIMELEFT = NULL, and that should match this bit of code in
AuthRADMIN.pm

       if (defined $timeleft)
        {
            if ($timeleft <= 0)
            {
                $self->log($main::LOG_DEBUG,
                           "User $name has no time left");
                $p->changeUserName($lastUsername);
                return undef;
            }
            else
            {
                $user->get_reply->add_attr('Session-Timeout', $timeleft);
            }
        }

But minutes later, the user succeeds in authentication!

Is this a random failure?
Can RADMESSAGES contain the amount of time left according to the SQL fetch
so we know what's happening?

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list