Hello Lachlan -
On Monday 08 January 2001 17:03, Lachlan Fletcher wrote:
> Hi,
>
> I'm sure this has been answered before, but I can't seem to find it.
>
> We are using "AuthBy SQL", but would like to log to a text file also, using
> the "AcctLogFileName" option to customise the name and location of the
> file, and we would like to do it differently for each realm. That is, we
> may want to use a different database and file name for each realm.
>
> Also, in the future, we may want to use a text based users file as a backup
> if the SQL database fails.
>
> Any ideas/suggestions or pointers to specific docs or examples would be
> great.
>
>
You just need to use one or more AcctLogFileName parameters in your Realm(s)
or Handler(s) (have a look at the special characters, section 6.2 in the
Radiator reference manual):
# log to different flat files in addition to SQL
<Realm ....>
<AuthBy SQL>
......
</AuthBy>
AcctLogFileName %D/detail-%R...
AcctLogFileName %D/detail-......
......
</Realm>
If you want to check a local users file, just add a second AuthBy clause with
an AuthByPolicy:
# configure AuthBy clauses with Identifiers
<AuthBy SQL>
Identifier CheckSQL
......
</AuthBy>
<AuthBy FILE>
Identifier CheckFILE
.....
</AuthBy>
<Realm ....>
AuthByPolicy ContinueUntilAccept
AuthBy CheckSQL
AuthBy CheckFILE
.....
</Realm>
hth
Hugh
--
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.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.