(RADIATOR) Double Dip

Hugh Irvine hugh at open.com.au
Thu Oct 17 02:09:05 CDT 2002


Hello Michael -

You could use Handlers, like this:

# define Handlers

<Handler Acct-Status-Type = Start>
	# process Starts
	AuthByPolicy ContinueAlways
	<AuthBy SQL>
		.....
		# add IP address to table using %{Framed-IP-Address}
		AcctSQLStatement insert into .....
	</AuthBy>
	# your normal AuthBy
	.....
</Handler>

<Handler Acct-Status-Type = Stop>
	# process Stops
	AuthByPolicy ContinueAlways
	<AuthBy SQL>
		.....
		# delete IP address to table using %{Framed-IP-Address}
		AcctSQLStatement delete from .....
	</AuthBy>
	# your normal AuthBy
	.....
</Handler>

<Handler Request-Type = Accounting-Request>
	# process any other accounting requests
	# your normal AuthBy
	.....
</Handler>

<Handler>
	# process authentication requests
	......
</Hanldler>


Alternatively, you could use a Hook to something similar (there are 
example hooks in "goodies/hooks.txt").

regards

Hugh



On Thursday, October 17, 2002, at 04:36 PM, Michael Saunders wrote:

> I know this is probably asking alot.
> I have 1 linux radiator server
> authenticating against a windows backend SQL 2002
> with a session database.
>
> I have qmail running as my mail server with an mySQL database
> I have just installed a table in this table on it for authentication
> relaying.
>
> I need to add the ip address of customers as they login into this 
> table as
> I have virtual ports as well and it is impossible to know what IP 
> address a
> customer may have. Can anyone offer any solutions.
>
> Michael Saunders
>
> ===
> 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: I am travelling this week, so there may be delays in our 
correspondence.

-- 
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