(RADIATOR) RewriteUsername question

Hugh Irvine hugh at open.com.au
Mon May 19 18:19:47 CDT 2003


Hello James -

You can use multiple RewriteUsername's, so you can strip off the 
prefixes like this:

	# remove prefix "ABC."
	RewriteUsername s/^ABC.//

	# remove prefix "DEF."
	RewriteUsername s/DEF.//

	.....

regards

Hugh



On Tuesday, May 20, 2003, at 08:06 Australia/Melbourne, James Nelson 
wrote:

> Is it possible to create a string of things to remove from usernames 
> that are sent to my Radiator server for authentication?  We have a 
> couple NASs that are not in our control that use prepended strings to 
> determine which server to send the requests to, and occasionallly do 
> not strip this off before sending it to us.  Basically, I have a list 
> of 3 different strings (3-4 alphabetic chars plus a "." or "/" 
> character) that might prepend a username.  This list of possibilities 
> might change somewhat frequently, so if possible I'd like to be able 
> to set some kind of global strings of what to filter.
>  
> Major problems I have is that the "." char is valid on our systems, so 
> I can't just strip everything before a period, it will have to match 
> our 3-4 letter string and a "." or 3-4 letter and a "/".  This will 
> always be at the beginning of the usrename, if that makes it easier.  
> Also note that I am already using RewriteUsername to strip the realm 
> before authenticating.
>  
> Thanks for the help,
> ::James Nelson
>

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2034 bytes
Desc: not available
URL: <http://www.open.com.au/pipermail/radiator/attachments/20030520/7242b8e4/attachment.bin>


More information about the radiator mailing list