(RADIATOR) Usering the %u in PreAuth/PostAuth Hook
Hugh Irvine
hugh at open.com.au
Fri Jun 20 18:27:16 CDT 2003
Hello Ken -
Yes you can use any of the special characters by calling format_special
in your hook code:
my $username = Radius::Util::format_special('%u', $p);
There are examples of using this in the file "goodies/hooks.txt".
regards
Hugh
On Saturday, Jun 21, 2003, at 02:20 Australia/Melbourne, Ken
Wolstencroft wrote:
> I am using Prefix in a Handler to select a particular user type.
> The problem I have is that the Prefix function is stripping the Prefix
> and
> rewriting the User-Name attribute.
>
> I need to use the full unstripped username in a PreAuth/PostAuth Hook.
> Is it
> possible to obtain %u or equivalent in these Hooks ?
>
> All the best and thanks,
> Ken
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.490 / Virus Database: 289 - Release Date: 6/16/2003
>
> ===
> 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.
>
>
NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
--
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.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