Fwd: rlm-perl lc usernames

Matthias Witte witte at netzquadrat.de
Tue Sep 23 13:06:30 CEST 2008


On Mon, Sep 22, 2008 at 07:26:24PM +0100, A.L.M.Buxey at lboro.ac.uk wrote:
> Hi,
> 
> >         User-Name = "****\\raduser"
>                        ^^^^^^^^^^^^^
> 
> ha. okay. with just a plain username you are safe,
> but with this windows case, you are dealing with
> \r  - which is a special character.  its getting
> borked elsewhere. to verify this use another
> username that cannot be a special case eg

I think you hit at least a part of the problem.

'\r' in strings messes up a (s)print(f) somewhere. '\r' is Carriage
Return and output gets overwritten from the start of the line.
Occasionally I get bitten by this when processing windows files quick
and dirty and forgetting about this.

Arnaud, have you tried to clean up the 'User-Name' Attribute like

$RAD_REQUEST{User-Name} =~ s/[\d\w@#._-]//g;

Mit freundlichem Gruß,

-- 
Matthias Witte - witte at netzquadrat.de
Telefon: +49 (0)211-30 20 33-18
Telefax: +49 (0)211-30 20 33-22

[netzquadrat] GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 36121 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5719/1836, Umsatzsteuer-ID: DE246863050

billiger-telefonieren.de - billiger-surfen.de - stromseite.de - sms.de



More information about the Freeradius-Users mailing list