(RADIATOR) radpwtst -noacct -noauth -code Disconnect-Request NAS-Port=xxx

Hugh Irvine hugh at open.com.au
Fri Jul 13 01:39:15 CDT 2001


Hello Alain -

As the error message in the log file says, you will need a Realm or Handler 
clause to deal with the Disconnect-Request. You will also need software on 
the NAS that understands Disconnect-Request.

Also note that when the NAS is configured to process Disconnect-Request it is 
acting as a Radius server for this operation, and hence, your Radiator will 
in fact need to be configured to proxy the Disconnect-Request to the NAS.

The first thing to do though is to check that your NAS supports 
Disconnect-Request, second you will have to configure the NAS to process the 
requests correctly, and third (optional) you can configure Radiator to 
forward the requests correctly.

NOTE: you can also send the Disconnect-Request directly to the NAS from 
radpwtst without going through Radiator at all (this may be easier in any 
case).

hth

Hugh


On Friday 13 July 2001 02:44, Gonzalez Castillo, Alain wrote:

> > Hi, i need to disconnect an user.
> When i use radpwtst -noacct -noauth -code Disconnect-Request NAS-Port=xxxx
>
> logfile tell me:
>
>
> Thu Jul 12 20:35:30 2001: DEBUG: Check if Handler Realm=xxxx should be used
> to handle this request
> Thu Jul 12 20:35:30 2001: WARNING: Could not find a handler for : request
> is ignored
> No reply
>
> Muy conf file is this:
>
> # Radiator configuration file.
> # Produced by /cgi-bin/radconfig.cgi Fri Jul  6 21:01:45 2001
> #REMOTE_USER: , REMOTE_ADDR: xxxx
>
> AcctPort 1646
> AuthPort 1645
> DbDir .
> Foreground
> LogDir .
> LogStdout
>
> <AddressAllocator SQL>
>   DBAuth xxxx
>   DBSource dbi:mysql:xxxx
>   DBUsername xxxx
>   Identifier direccionesip
>
> <AddressPool pool1>
>     DNSServer xxxx
>     Range xxxx xxxx
>     Subnetmask xxxx
>   </AddressPool>
> </AddressAllocator>
>
> <AuthBy SQL>
>   AccountingTable ACCOUNTING
>   AcctColumnDef USERNAME,User-Name
>   AcctColumnDef TIME_STAMP,Timestamp,integer
>   AcctColumnDef ACCTSTATUSTYPE,Acct-Status-Type
>   AcctColumnDef ACCTDELAYTIME,Acct-Delay-Time,integer
>   AcctColumnDef ACCTINPUTOCTETS,Acct-Input-Octets,integer
>   AcctColumnDef ACCTOUTPUTOCTETS,Acct-Output-Octets,integer
>   AcctColumnDef ACCTSESSIONID,Acct-Session-Id
>   AcctColumnDef ACCTSESSIONTIME,Acct-Session-Time,integer
>   AcctColumnDef ACCTTERMINATECAUSE,Acct-Terminate-Cause
>   AcctColumnDef NASIDENTIFIER,NAS-Identifier
>   AcctColumnDef NASPORT,NAS-Port,integer
>   AcctColumnDef FRAMEDIPADDRESS,Framed-IP-Address
>   DBAuth xxxx
>   DBSource dbi:mysql:user_BLOSTE
>   DBUsername root
>   Identifier ID_0
> </AuthBy>
>
>
> <ClientListSQL >
>   DBAuth xxxx
>   DBSource dbi:mysql:xxxx
>   DBUsername root
> </ClientListSQL>
>
> <Log SQL>
>   DBAuth xxxx
>   DBSource dbi:mysql:xxxx
>   DBUsername xxxx
>   LogQuery insert into RADLOG (TIME_STAMP, PRIORITY, MESSAGE) values (%t,
> '$p', '$s')
>   Trace 3
> </Log>
>
> <Log FILE>
>   Filename logfile.radiator
>   Identifier log radiator
>   Trace 5
> </Log>
>
> <Realm xxxx>
>   AuthBy ID_0
>   AuthByPolicy ContinueWhileIgnore
>   RewriteUsername s/^([^@]+).*/$1/
>   SessionDatabase Sesion SQL
> 	<AuthBy DYNADDRESS>
>   	Allocator direccionesip
>   	MapAttribute yiaddr, Framed-IP-Address
>   	MapAttribute subnetmask, Framed-IP-Netmask
>   	PoolHint %{Reply:PoolHint}
>   	StripFromReply PoolHint
> 	</AuthBy>
>
> </Realm>
>
> <SessionDatabase SQL>
>   AddQuery insert into RADONLINE (USERNAME, NASIDENTIFIER, NASPORT,
> ACCTSESSIONID, TIME_STAMP, FRAMEDIPADDRESS, NASPORTTYPE, SERVICETYPE)
> values ('%u', '%N', 0%{NAS-Port}, '%{Acct-Session-Id}', %{Timestamp},
> '%{Framed-IP-Address}', '%{NAS-Port-Type}', '%{Service-Type}')
>   ClearNasQuery delete from RADONLINE where NASIDENTIFIER='%N'
>   CountNasSessionsQuery select ACCTSESSIONID from RADONLINE where
> NASIDENTIFIER='%N'
>   CountQuery select NASIDENTIFIER, NASPORT, ACCTSESSIONID from RADONLINE
> where USERNAME='%u'
>   DBAuth xxxx
>   DBSource dbi:mysql:xxxx
>   DBUsername xxxx
>   DeleteQuery delete from RADONLINE where NASIDENTIFIER='%N' and
> NASPORT=0%{NAS-Port}
>   Description Logs
>   Identifier Sesion SQL
> </SessionDatabase>
>
> Anyone can help me?
> My NAS is an Cisco AS5300.
>
> Thanks.
> Alain.

----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 
----------------------------------------

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
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