(RADIATOR) Small patch to allow username-patterns to select the Handler

Hugh Irvine hugh at open.com.au
Fri Sep 5 23:48:23 CDT 2003


Hello Kurt -

Thanks for your mail.

Radiator already supports regexps on any attributes in the incoming 
request.

Ie:

<Handler User-Name = /...../>
	.....
</Handler>

You can also use multiple items:

<Handler User-Name = /..../, Client-Identifier = /..../>
	.....
</Handler>

regards

Hugh


On Friday, Sep 5, 2003, at 21:19 Australia/Melbourne, Kurt Jaeger wrote:

> Hi!
>
> Here's a small snippet of code that allows a Handler to be
> selected by a pattern in the username.
>
> This is necessary if the realm is not the only criteria
> of "where to proxy the auth request" (because a realm is always
> seperated by "@", and german telekom dsl platforms give us usernames 
> like
> test-lfn#eg at ipx-dsl.de 8-}
>
> Radius/AuthGeneric.pm
> 992a993,997
>>       elsif ($check_name eq 'Username')
>>       {
>>           return ($main::REJECT, "Username does not match")
>>               unless match($self, $username, $check_name, $value);
>>       }
>
> I'm not sure whether this fits in, but if it ends up in radiator-3.7,
> that would be nice.
>
> -- 
> MfG/Best regards, Kurt Jaeger                                  17 
> years to go !
> LF.net GmbH        fon +49 711 90074-23  pi at LF.net
> Ruppmannstr. 27    fax +49 711 90074-33
> D-70565 Stuttgart  mob +49 171 3101372
> ===
> 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.
>
> ===
> 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, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.



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