Hello Jesper -
On Wed, 09 Aug 2000, WOL - Jesper L . Nielsen wrote:
> Hi There...
>
> First posting, but I couldn't seem to find this anywere:
>
> I'm currently trying to configure Radiator to suit my needs, and this
> involves putting some database checks into the PreAuthHook. But I was
> wondering if it's possible to use the same DBI routines as Radiator uses
> internally.
> The thing I'm really interrested in is getting my hands on the internal
> fallback connection routine, is that possible from within the hook?
>
Yes you can do this, by using an Identifier tag in the AuthBy clause:
# configure AuthBy SQL with Identifier
<AuthBy SQL>
Identifier Check_SQL
DBSource ....
DBUsername ....
DBAuth ....
.....
</AuthBy>
Then in your PreAuthHook you would do something like this:
my $authby = Radius::AuthGeneric::find('Check_SQL');
$rc = $authby->......
This has been discussed on the list recently, so have a look there also:
http://www.starport.net/~radiator
hth
Hugh
--
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.
===
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.