(RADIATOR) Identifier, PostAuthHook

Mike McCauley mikem at open.com.au
Mon Jun 2 22:43:00 CDT 2003


Hello Nathan ,

On Tue, 3 Jun 2003 12:27 pm, Nathan 'Franko' Franklin wrote:
> Hello Hugh and List
>
> I am writing a PostAuthHook, I need to use the AuthBy's Identifiers'
> database connections
>
> I can reference it staticly like this:
>
> my $db = Radius::AuthGeneric::find('AuthByEmerald');
>
> how do i reference it dynamicly, specific to its authby clause
>
> I Have tried this
>
> my $id = $request->{Identifier};
> my $db = Radius::AuthGeneric::find($id);
>
> and
>
> my $id = Radius::Util::format_special('%{Handler:Identifier}', $request);
> # $id return an empty string
> my $db = Radius::AuthGeneric::find($id);
>
> any ideas???

You cant find the AuthBy by looking at the request packet: its not stored 
there, mainly becasue its possible for a requiest to tgo through several 
AuthBys.

You can find the Client it went through with:
$p->{Client}

You can find the Handler it went through with:
$p->{Handler}

Hope that helps
Cheers.

>
> Kind Regards
>
> Nathan Franklin
> TSN Internet
> nathan at tsn.cc
> MSN: nathanfranko at hotmail.com
>
> 'Don't get lost in the midst of busyness and misplace what is most
> important to you.'

-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP etc on Unix, Windows, MacOS etc.

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