Re: checkrad.pl & MT Routers

This is a discussion on Re: checkrad.pl & MT Routers within the FreeRADIUS Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C523F9.1BCC9B70 Content-Type: text/plain; format=flowed; charset="iso-...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
Chris Knipe
 
Posts: n/a
Default Re: checkrad.pl & MT Routers

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C523F9.1BCC9B70
Content-Type: text/plain;
format=flowed;
charset="iso-8859-1";
reply-type=response
Content-Transfer-Encoding: 7bit

diff for checkrad.pl

--
Chris.


----- Original Message -----
From: "Chris Knipe" <savage@savage.za.org>
To: <freeradius-users@lists.freeradius.org>
Sent: Tuesday, March 08, 2005 3:55 PM
Subject: Re: checkrad.pl & MT Routers


> I'll try and make a diff later on and send it through...
>
> Newer MT's changed the commands for ppp active print...
>
> checkrad.pl should be sending 'ppp active print without-paging detail',
> not 'ppp active print column name detail'. The column parameter does not
> exist anymore.
>
> --
> Chris.
>
>
>
>
> ----- Original Message -----
> From: "Chris Knipe" <savage@savage.za.org>
> To: <freeradius-users@lists.freeradius.org>
> Sent: Tuesday, March 08, 2005 3:43 PM
> Subject: checkrad.pl & MT Routers
>
>
>> Lo all,
>>
>> Something strange going on here (or I am forgetting something).
>>
>> clients.conf:
>> client x.x.x.6 {
>> secret = mysecret
>> shortname = myshortname
>> nastype = mikrotik
>> }
>>
>> Client is working, successfully authenticating and running accounting and
>> no problems with it what so ever.
>>
>> naspasswd
>> x.6 username password
>>
>> checkrad:
>> /usr/local/sbin/checkrad mikrotik x.6 PortId UserName AcctSessionID
>>
>> I have taken PortID, UserName, and AcctSessionID from the accounting data
>> for a user currently logged into the system.
>>
>> debug log:
>> Tue Mar 8 15:37:29 2005 checkrad mikrotik x.6 PortId UserName
>> AcctSessionID
>> Returning 0 (login ok)
>>
>> HOWEVER,
>> 1) The user is actually loged in at the time that I run this test...
>> Thus, it should be a duplicate user????
>> 2) The checkrad script NEVER actually logs into the NAS (I think this is
>> the problem) ????
>>
>> This, also is not a permissions / firewall issue... I can telnet into the
>> NAS from the same location where I am testing checkrad from, with the
>> same credentials as specified in naspasswd...
>>
>> Woud appreciate it if someone can possible just give some pointers on
>> what else to look out for...
>>
>> --
>> Chris.
>>
>>
>> - List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>

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


------=_NextPart_000_0006_01C523F9.1BCC9B70
Content-Type: application/octet-stream;
name="checkrad.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="checkrad.diff"

1244a1245,1249
> # RouterOS command structure has changed. We are now required
> # to issue 'ppp active print without-paging detail' to the
> # RouterOS in order to get a detailed list of current users.
> # Chris Knipe <savage@savage.za.org>
>

1248c1253
< $t->print('ppp active print column name detail');
---
> $t->print('/ppp active print without-paging detail');

1252c1257
< $t->waitfor('/\[.*@.*\] > ppp active print column name detail/');
---
> $t->waitfor('/\[.*@.*\] > /ppp active print without-paging detail/');


------=_NextPart_000_0006_01C523F9.1BCC9B70--


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0