(RADIATOR) <Log FILE> not appearing to be working...

Jeremy Burton jpburton at netspace.net.au
Mon Apr 29 00:59:45 CDT 2002


Hi All,
  I've just upgraded from Radiator 2.17.1 to Radiator 3.0. 
I am trying to log different parts of the config to different log files,
and am having no luck at all - everything just ends up in the global
logfile. Attached is my config file - this isn't actually my main config
file, but a smaller one which replicates the problem. Also I'll attach the
default entries for the users.dialup and users.adsl... Basically, anyone
know why I'm only getting one log file, not two, as i would expect from
the additional <Log FILE></Log> directive?

radius.cfg:

# $Revision: 1.7 $
# $Date: 2001/06/28 08:31:35 $
#
#Foreground
#LogStdout
Trace	3

# NOTE: Anywhere that 
# PreHandlerHook sub { ${$_[0]}->add_attr('Client-Port-DNIS', '55555550');}
# appears is so that eXtremes can log onto analogue equipment..

PidFile	/etc/raddb/radiusd.testing.pid
AuthPort	1645
AcctPort	1646
LogDir		/var/radacct
LogFile		/etc/raddb/logfile.testing-normal
DbDir		/etc/raddb
DictionaryFile	/etc/raddb/dictionary.ascend

<Client 210.15.210.5>
	FramedGroupBaseAddress 10.200.0.0
	Secret	XXXXXXXXX
	DupInterval 10
</Client>

<Realm WhoShotAdsl>
	# You can group multiple AuthBy methods with AuthBy GROUP
	<AuthBy GROUP>
		Identifier AdslSystem
		AuthByPolicy ContinueWhileAccept
		<AuthBy SQL>
			# AuthSelect with empty string means dont do auth
			AuthSelect	SELECT password, radius.check_items_new('%n', '%N', '%{Client-Port-DNIS}'), radius.reply_items_new('%n', '%N') FROM SA.Clients, sa.adsl where username = '%n' and adsl.userid = clients.userid
			AuthColumnDef 0, User-Password, check
			AuthColumnDef 1, GENERIC, check
			AuthColumnDef 2, GENERIC, reply
			DBSource	dbi:Oracle:SOME_SID
			DBUsername	SOME_USER
			DBAuth		SOME_PASS
			AccountingTable	
			Timeout 10000
                        FailureBackoffTime	300
		</AuthBy>
	</AuthBy>
</Realm>

<Realm WhoShotWho>
	# You can group multiple AuthBy methods with AuthBy GROUP
	<AuthBy GROUP>
		Identifier System
		AuthByPolicy ContinueWhileAccept
		<AuthBy SYSTEM>
			UseGetspnam
		</AuthBy>
		<AuthBy SQL>
			# AuthSelect with empty string means dont do auth
			AuthSelect	SELECT radius.check_items_new('%n', '%N', '%{Client-Port-DNIS}'), radius.reply_items_new('%n', '%N') FROM SA.Clients where username = '%n'
			AuthColumnDef 0, GENERIC, check
			AuthColumnDef 1, GENERIC, reply
			DBSource	dbi:Oracle:SOME_SID
			DBUsername	SOME_USER
			DBAuth		SOME_PASS
			AccountingTable	
			Timeout 10000
                        FailureBackoffTime	300
		</AuthBy>
	</AuthBy>
</Realm>

<Realm adsl>
	RejectHasReason
        RewriteUsername s/\@adsl//
        AcctLogFileName %L/adsl/%C/%v%f-%i-%H
	PasswordLogFileName /etc/raddb/password.adsl
	<AuthBy GROUP>
		AuthByPolicy ContinueWhileAccept
		<Log FILE>
		  Trace 3
                  Filename %D/logfile.testing-adsl
                </Log>
		<AuthBy RADIUS>
			NoForwardAuthentication
			Host secondhost.seconddomain.com
			Secret	XXXXXXXXX
		</AuthBy>
		<AuthBy FILE>
			Filename %D/users.adsl
		</AuthBy>
	</AuthBy>
</Handler>

<Handler Realm=>
	RejectHasReason
	AuthByPolicy ContinueWhileIgnore
        AcctLogFileName %L/%C/%v%f-%i-%H
	<AuthBy GROUP>
		<AuthBy FILE>
			Filename %D/users.check
		</AuthBy>
		<AuthBy FILE>
			Filename %D/users.dialup
		</AuthBy>
	</AuthBy>
</Handler>

users.dialup:
DEFAULT Auth-Type = System

users.adsl:
DEFAULT Auth-Type = AdslSystem

thanks

Jeremy

-- 
Jeremy Burton
Database Administrator, Netspace Online Systems
jpburton at netspace.net.au
jpburton at thedonkeys.org
===
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