<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="monospace">Hi all,<br>
<br>
Usage freeradius 2.1.2 and i'm with problems about username
authentication.<br>
<br>
Simply authentication accept any variations of the same username.
Example:<br>
<br>
Register user: "var"<br>
<br>
Is accept:<br>
<br>
"Var" "vAr" "vaR" VaR" "VAr" "vAR" "var " ...<br>
<br>
This ends "bypassing" the blockage i do for multiple sessions with
the same user. ( attribute Simultaneous-Use )<br>
<br>
I noticed that the file <b>/</b><b>path/freeradius/policy.conf</b>
have the function with filters if to solve problem, but not
function.<br>
<br>
The unique that works is filter space start.<br>
<br>
filter_username {<br>
# spaces at the start: reject<br>
if (User-Name =~ /^ /) {<br>
reject<br>
}<br>
<br>
<b> # spaces at the end: reject</b><b><br>
</b><b> if (User-Name =~ / $$/) {</b><b><br>
</b><b> reject</b><b><br>
</b><b> }</b><br>
<br>
<b># Mixed case: reject</b><b><br>
</b><b> if (User-Name != "%{tolower:%{User-Name}}")
{</b><b><br>
</b><b> reject</b><b><br>
</b><b> }</b><br>
<br>
}<br>
<br>
<br>
Appreciate the help.<br>
</font><br>
<div class="moz-signature">-- <br>
<div style="background-color: white; color: #222222; font-family:
arial, sans-serif; font-size: 13px; margin: 0cm 0cm 0.0001pt;
text-align: center;">
<b><span style="font-family: 'Apple Symbols';"><br
class="Apple-interchange-newline">
</span></b>
<br>
<div style="text-align: left;">
<div style="text-align: center;">
<b><span style="font-family: 'Apple Symbols';"><b
style="font-family: arial, sans-serif;"><span
style="font-family: 'Apple Symbols';">Bruno G
Correia</span></b></span></b></div>
<div style="text-align: center;">
<span style="font-family: 'Apple Symbols';">Analista de
Redes</span></div>
</div>
</div>
<div style="background-color: white; color: #222222; font-family:
arial, sans-serif; font-size: 13px; margin: 0cm 0cm 0.0001pt;
text-align: center;">
<span style="font-family: 'Apple Symbols';"></span></div>
<div style="background-color: white; margin: 0cm 0cm 0.0001pt;
text-align: center;">
<div style="text-align: left;">
<div style="text-align: center;">
<span style="color: #222222; font-family: 'Apple Symbols';
font-size: 13px;"><a
href="http://br.linkedin.com/in/brunocorr"
target="_blank"><img
src="cid:part1.03030203.00050707@brunocorreia.com.br"></a> </span></div>
<div style="text-align: center;">
<span style="font-family: arial, sans-serif; font-size:
xx-small;">(83) 8812-2235</span></div>
<div style="text-align: center;">
<span style="font-family: arial, sans-serif; font-size:
xx-small;">(83) 9862-0224</span></div>
</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
</body>
</html>