Hello Aaron -
There is a bit of a problem here because the SQL paramaters are dealt with
at Startup (or restart), so even if you put special formatting in them, they
won't take effect as expected. I think you might do better by specifying one
or more AcctSQLStatements, as they are passed to format_special for each
packet. Have a look at AuthSQL.pm to see what happens.
hth
Hugh
NB - I'm travelling for a couple of weeks ...
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
----- Original Message -----
From: "Aaron Holtz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 12:06 AM
Subject: (RADIATOR) Variables within the DBSource line
> Is it possible (or could it be) to use variables within the DBSource line?
> I have several separate clauses that require a DBSource line definition
> that are all the same. But each one references a dbname that is based on
> the month and year. Instead of having to change this each month, I'd like
> to have variables in there to pick up the name change automatically. Even
> if it is only read at startup, I can reload the daemon automatically on
> the 1st to pick up the change and reconnect to the right database to write
> the Stop records.
>
> Or would it better to create an Identifier that has all the connection
> information in it and each clause just references that identifier - then I
> would only have to make 1 change and reload? If so, how can that be done?
> Or could I create an external file with the right information in it and
> do an 'include filename' in each clause? I'm not sure if these are valid
> options or not. Thanks.
>
> --------------------------------------------------------------------------
> Aaron Holtz
> ComNet Inc.
> UNIX Systems Administration/Network Operations
> "It's not broken, it just lacks duct tape."
> --------------------------------------------------------------------------
>
>
> ===
> 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.
>
===
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.