[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-radius] Lower case passwords/usernames, stripping white sp
From: |
Sergey Poznyakoff |
Subject: |
Re: [Help-gnu-radius] Lower case passwords/usernames, stripping white space |
Date: |
Mon, 08 Jul 2002 10:11:21 +0300 |
> Is there a way to configure GNU RADIUS (0.96.3) to do the following?
> 1. Convert usernames to lower case or otherwise make case
> insensitive.
Generally speaking, yes. But rewrite language lacks tolower() call
which is necessary for this.
Note that if you are using SQL authentication, this can be done
by properly declaring user_name column in your authentication table.
> 2. Convert passwords to lower case or otherwise make case
> insensitive.
No.
> 3. Strip all whitespace from usernames.
Yes:
string
delete_ws(string s)
{
string rs;
rs = "";
while (s =~ "\([^ \t]*\)[ \t][ \t]*\(.*\)") {
rs = rs + \1;
s = \2;
}
return rs + s;
}
> 4. Strip all whitespace from passwords.
No.
Regards,
Sergey