[RADIATOR] Using SQL statements inside a PostAuthHook
Hugh Irvine
hugh at open.com.au
Tue Mar 19 17:58:00 CDT 2013
Hi Jethro -
Because these are defined as statics:
From Radius/Radius.pm:
# These are the well known radius attribute numbers that we use
# We have these here so we can change the dictioanry to
# be anything we like
$Radius::Radius::USER_NAME = 1;
…..
regards
Hugh
On 20 Mar 2013, at 09:50, Jethro R Binks <jethro.binks at strath.ac.uk> wrote:
> On Mon, 18 Mar 2013, Heikki Vatiainen wrote:
>
>>> my $username =
>>> $p->getAttrByNum($Radius::Radius::User-Name);
>>
>> use $Radius::Radius::USER_NAME instead
>
> Heikki,
>
> I am curious to know why your method is preferable?
>
> Jethro.
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
> Jethro R Binks, Network Manager,
> Information Services Directorate, University Of Strathclyde, Glasgow, UK
>
> The University of Strathclyde is a charitable body, registered in
> Scotland, number SC015263.
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
--
Hugh Irvine
hugh at open.com.au
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, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc.
Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
More information about the radiator
mailing list