(RADIATOR) Somethingswrong with my Handler definitions?
Hugh Irvine
hugh at open.com.au
Fri Aug 8 06:49:22 CDT 2003
Hello Bobby -
You should include the LANG environment setup in the
/etc/init.d/radiator script.
I would also suggest you set up your Handlers like this:
# Handler for accounting
<Handler Realm=adsltest, Request-Type=Accounting-Request>
RejectHasReason
AuthByPolicy ContinueWhileAccept
# PacketTrace
# This logs accounting to the SQL database
AuthBy SQLAccounting
# Process the AddressAllocator in order to update the RADPOOL
database
<AuthBy DYNADDRESS>
Allocator myallocator
PoolHint %{NAS-Identifier}
# PoolHint %{Calling-Station-Id}
MapAttribute yiaddr, Framed-IP-Address
StripFromReply PoolHint
StripFromReply Framed-IP-Netmask
</AuthBy DYNADDRESS>
AuthLog myAuthlogger
# PasswordLogFileName %L/Password-ATS.log
# This logs accounting to a flat file
AcctLogFileName %L/Acct-ATS-%Y-%m-%d.log
AcctLogFileFormat %o, %{User-Name}, %{Framed-IP-Address}, \
%{NAS-Identifier}, %{Acct-Status-Type},
%{Acct-Session-Time}, \
%{Acct-Input-Octets}, %{Acct-Output-Octets},
%{Acct-Terminate-Cause}
SessionDatabase mySessionDB
</Handler>
# Handler for authentication
<Handler Realm=adsltest>
RejectHasReason
AuthByPolicy ContinueWhileAccept
# PacketTrace
# This does the authentication
AuthBy DefaultAccept
# If authentication succeeds, this allocates an address
# using the AddressAllocator
# This gets reply attribute based on the NAS
<AuthBy DYNADDRESS>
Allocator myallocator
PoolHint %{NAS-Identifier}
# PoolHint %{Calling-Station-Id}
MapAttribute yiaddr, Framed-IP-Address
StripFromReply PoolHint
StripFromReply Framed-IP-Netmask
</AuthBy DYNADDRESS>
AuthLog myAuthlogger
# PasswordLogFileName %L/Password-ATS.log
SessionDatabase mySessionDB
</Handler>
You should also check the version of Perl that you have as we have had
reports of problems with Perl 5.8.
We suggest using Perl 5.6.1 for Radiator.
regards
Hugh
On Friday, Aug 8, 2003, at 21:21 Australia/Melbourne, Bobbejaan van
Elst wrote:
>
> Hi,
>
> I have a question, I get the following error when I start radiator:
>
> =======
>
> [root at apps root]$ export LANG=en_US
> [root at apps root]$ echo $LANG
> en_US
> [root at apps root]$ /etc/init.d/radiator restart
> Shutting down Radiator: [ OK ]
> Starting Radiator: [ OK ]
> [root at apps root]$ tail
> /etc/radiator/log-radius-pool/logfile-pool-2003-08-08.log
> Fri Aug 8 13:14:42 2003: DEBUG: Reclaiming expired leases
> Fri Aug 8 13:14:42 2003: DEBUG: do query is: 'update RADPOOL set
> STATE=0 where STATE!=0 and EXPIRY < 1060341282':
>
> Fri Aug 8 13:14:42 2003: ERR: Bad attribute=value pair:
> Realm=adsltest,
> Request-Type=Access-Request Fri Aug 8 13:14:42 2003: ERR: Bad
> attribute=value pair: Realm=adsltest, Request-Type=Accounting-Request
> Fri Aug 8 13:14:42 2003: DEBUG: Finished reading configuration file
> '/etc/radiator/radius-pool.cfg' Fri Aug 8 13:14:42 2003: DEBUG:
> Reading
> dictionary file '/etc/radiator/dictionary' Fri Aug 8 13:14:43 2003:
> DEBUG: Creating authentication port 0.0.0.0:1645 Fri Aug 8 13:14:43
> 2003: DEBUG: Creating accounting port 0.0.0.0:1646 Fri Aug 8 13:14:43
> 2003: NOTICE: Server started: Radiator 3.6 on apps67 [root at apps root]$
>
> ======
>
> This is a part of my config file:
>
> =======
>
> # Handler definitions:
> # adsltest Authentication
> # adsltest Accounting
>
> <Handler Realm=adsltest, Request-Type=Access-Request>
>
> RejectHasReason
>
> AuthByPolicy ContinueWhileAccept
>
> # PacketTrace
>
> # This does the authentication
> AuthBy DefaultAccept
>
> # If authentication succeeds, this allocates an address
> # using the AddressAllocator
>
> # This gets reply attribute based on the NAS
> <AuthBy DYNADDRESS>
> Allocator myallocator
>
> PoolHint %{NAS-Identifier}
> # PoolHint %{Calling-Station-Id}
> MapAttribute yiaddr, Framed-IP-Address
> StripFromReply PoolHint
> StripFromReply Framed-IP-Netmask
>
> </AuthBy DYNADDRESS>
>
> AuthLog myAuthlogger
> # PasswordLogFileName %L/Password-ATS.log
>
> SessionDatabase mySessionDB
>
> </Handler>
>
> <Handler Realm=adsltest, Request-Type=Accounting-Request>
>
> RejectHasReason
>
> AuthByPolicy ContinueWhileAccept
>
> # PacketTrace
>
> # This logs accounting to the SQL database
> AuthBy SQLAccounting
>
>
> # Process the AddressAllocator in order to update the RADPOOL
> database
> <AuthBy DYNADDRESS>
>
> Allocator myallocator
>
> PoolHint %{NAS-Identifier}
> # PoolHint %{Calling-Station-Id}
> MapAttribute yiaddr, Framed-IP-Address
> StripFromReply PoolHint
> StripFromReply Framed-IP-Netmask
>
> </AuthBy DYNADDRESS>
>
> AuthLog myAuthlogger
> # PasswordLogFileName %L/Password-ATS.log
>
>
> # This logs accounting to a flat file
> AcctLogFileName %L/Acct-ATS-%Y-%m-%d.log
> AcctLogFileFormat %o, %{User-Name}, %{Framed-IP-Address}, \
> %{NAS-Identifier}, %{Acct-Status-Type},
> %{Acct-Session-Time}, \
> %{Acct-Input-Octets}, %{Acct-Output-Octets},
> %{Acct-Terminate-Cause}
>
>
> SessionDatabase mySessionDB
>
> </Handler>
>
> ==========
>
> I'm running Redhat 9.0 and radiator version: Radiator-3.6-1.noarch.rpm,
> please help.
>
>
> Kind regards,
>
> Bobbejaan van Elst
>
>
> Met vriendelijke groet,
>
> Bobbejaan van Elst
> Planet Technologies
>
> ===
> 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.
>
>
NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
--
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