(RADIATOR) Rewriting realm

Hugh Irvine hugh at open.com.au
Mon Apr 19 18:50:07 CDT 2004


Hello Erich -

You should use a global RewriteUsername to force lower case:

RewriteUsername tr/A-Z/a-z/

This should be defined outside any Realm - I generally put it (them) 
near the top of the configuration file with DbDir, LogDir, etc.

regards

Hugh


On 20 Apr 2004, at 02:04, Erich Zigler wrote:

> Currently from our upstream providers we receive the usernames from 
> them in
> the following format.
>
> user at realm.tld
>
> However the end users some times type in
>
> user at Realm.TLD, etc. with a mix of capitalization when every thing 
> should be
> in lowercase.
>
> Our realms.cfg file is setup in the following way.
>
> <Realm realm.tld>
> RewriteUsername s/^([^@]+).*/$1/
>        AuthByPolicy EveryOne
>        AuthBy ProxyAccounting
>        <AuthBy RADIUS>
>                 Identifier Radius
>                 Host            xx.xx.xx.xx
>                 Secret          xxxx
>                 AuthPort   1645
>                 AcctPort   1646
>                 Retries         5
>        </AuthBy>
> AuthLog AuthLogger
> AuthLog AuthLoggerSQL
> </Realm>
>
> Is there a way to automatically rewrite the realm name on a global 
> level to
> make it lowercase?
>
> RewriteUsername only applies to after the Realm has been determined. 
> I've
> searched the documentation but I believe I have missed it.
>
> Any ideas?
>
> Thank you.
>
> --
> 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.
-
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