[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cistron-radius
Subject:    Re: simultaneous login
From:       Vesselin Kotarov <bombe () online ! bg>
Date:       1999-02-28 14:16:21
[Download RAW message or body]

    Hi,
I've tried and checked all the solutions posted in the mailing list but still
have a
problem - my checkrad is not running. Here is part of my users file:

DEFAULT Group = 50hour, Simultaneous-Use = 3
        Exec-Program-Wait = "/usr/local/bin/check.pl %u",
        Fall-Through = Yes
.....
DEFAULT Auth-Type = Mysql,
        Service-Type = Framed-User,
        Framed-Protocol = PPP,
        Framed-IP-Address = 192.168.2.129+,
        Framed-IP-Netmask = 255.255.255.255,
        Framed-Compression = Van-Jacobson-TCP-IP

And here's a part of the debug when I run radiusd with -x option:
Starting - reading configuration files ...
MYSQL_init: using: localhost,radius,vesko,vesko,passwd,usertime,1,1,1
Ready to process requests.
radrecv: Request from host c0a80201 code=1, id=61, length=74
    User-Name = "test"
    Password = "v\333\260\267f\211\304/ik\371\307Br\211\271"
    NAS-IP-Address = 192.168.2.1
    NAS-Port-Id = 3
    NAS-Port-Type = Async
    Service-Type = Framed-User
    Framed-Protocol = PPP
MYSQL query OK
User test successfully authenticated via mysql
Exec-Program: /usr/local/bin/check.pl test
Exec-Program-Wait: value-pairs: Session-Timeout = 163777,
Exec-Program: returned: 0
Sending Ack of id 61 to c0a80201 (nas gated)
    Service-Type = Framed-User
    Framed-Protocol = PPP
    Framed-IP-Address = 192.168.2.132
    Framed-IP-Netmask = 255.255.255.255
    Framed-Compression = Van-Jacobson-TCP-IP
    Session-Timeout = 163777
Login OK: [test] (from nas gated)
radrecv: Request from host c0a80201 code=4, id=62, length=90
    Acct-Session-Id = "700002D3"
    User-Name = "test"
    NAS-IP-Address = 192.168.2.1
    NAS-Port-Id = 3
    NAS-Port-Type = Async
    Acct-Status-Type = Start
    Acct-Authentic = RADIUS
    Service-Type = Framed-User
    Framed-Protocol = PPP
    Framed-IP-Address = 192.168.2.132
    Acct-Delay-Time = 0
SELECT id FROM usertime WHERE id='700002D3' AND server='192.168.2.1' AND
name='test'
MYSQL query OK
INSERT INTO usertime (id, time_on, name, server, port, port_type
, service_type, protocol, ip, call_to, call_from, InBytes, OutBytes, term_cause,
 auth) VALUES
('700002D3',0,'test','192.168.2.1',3,0,2,1,'192.168.2.132','','',0,0,0,1)
MYSQL query OK
UPDATE usertime SET start_time=19990228153743,connect_info='' WHERE id='700002D3'
AND server='192.168.2.1' AND name='test'
MYSQL query OK
Sending Accounting Ack of id 62 to c0a80201 (nas gated)
radrecv: Request from host c0a80201 code=4, id=63, length=114
    Acct-Session-Id = "700002D3"
    User-Name = "test"
    NAS-IP-Address = 192.168.2.1
    NAS-Port-Id = 3
    NAS-Port-Type = Async
    Acct-Status-Type = Stop
    Acct-Session-Time = 1200
    Acct-Authentic = RADIUS
    Acct-Input-Octets = 10900
    Acct-Output-Octets = 39753
    Acct-Terminate-Cause = Admin-Reset
    Service-Type = Framed-User
    Framed-Protocol = PPP
    Framed-IP-Address = 192.168.2.132
    Acct-Delay-Time = 0
SELECT id FROM usertime WHERE id='700002D3' AND server='192.168.2.1' AND
name='test'
MYSQL query OK
INSERT INTO usertime (id, time_on, name, server, port, port_type
, service_type, protocol, ip, call_to, call_from, InBytes, OutBytes, term_cause,
 auth) VALUES
('700002D3',1200,'test','192.168.2.1',3,0,2,1,'192.168.2.132','','',10900,39753,6,1)

UPDATE usertime SET
time_on=1200,stop_time=19990228155742,inbytes=10900,outbytes=39753,term_cause=6
WHERE id='700002D3' AND server='192.168.2.1' AND name='test'
MYSQL query OK
Sending Accounting Ack of id 63 to c0a80201 (nas gated)

I got nothing in /var/log/checkrad.log even with checkrad in debug mode.
Also no messages about checkrad in the radius.log.
I have checkrad installed with read-execute permissions for everyone in /usr/sbin

and in /usr/local/sbin

I'll appreciate any help.
                                        73s de Bombe :)))

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic