(RADIATOR) AuthFile patch for UsernameMatchesWithoutRealm flag

Hugh Irvine hugh at open.com.au
Wed Jun 7 21:03:50 CDT 2006


Hello Robin -

Thanks for your patch, but this is already supported in AuthGeneric.pm.

Mike has fixed the documentation for the next release.

regards

Hugh


On 7 Jun 2006, at 10:47, Robin Breathe wrote:

> Hi,
>
> We needed the attached patch in order to reliably authenticate just  
> the
> "user"-part of "user at realm" against an AuthBy FILE in both EAP and
> non-EAP cases.
> Please consider rolling it into the patch bundle.
>
> Regards,
> Robin
> -- 
> Robin Breathe, Computer Services, Oxford Brookes University,  
> Oxford, UK
> rbreathe at brookes.ac.uk       Tel: +44 1865 483685  Fax: +44 1865  
> 483073
> --- AuthFILE.pm.orig	2006-06-07 18:35:16.942759000 +0100
> +++ AuthFILE.pm	2006-06-07 18:41:26.271558000 +0100
> @@ -16,7 +16,8 @@
>
>  %Radius::AuthFILE::ConfigKeywords =
>      ('Filename'        => 'string',
> -     'Nocache'         => 'flag');
> +     'Nocache'         => 'flag',
> +     'UsernameMatchesWithoutRealm' => 'flag');
>
>  #####################################################################
>  # Constructs a new handler
> @@ -56,6 +57,8 @@
>      # Trying to prime the cache, don't. Do it on first request.
>      return undef if(!defined($look_for));
>
> +	$look_for =~ s/@[^@]*$// if $self->{UsernameMatchesWithoutRealm};
> +
>      # Use the filename as a key to the cache structure.
>      my $type = ref($self);
>      my $filename = &Radius::Util::format_special($self-> 
> {Filename}, $p);


NB: I am travelling this week, so there may be delays in our  
correspondence.

-- 
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.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


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