<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>

<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>


<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
This is not really an option since a user could possibly change the User-Name attribute to another user before sending to the Radius. The user could then make himself have the radius assign him the other users attributes (ie get onto that users network) since the user will be in the database, and the cert will be valid.<br><br>I will give Alan DeKoks solution a try tomorrow. I can see how this would work, although I'm not sure about how it will interpret the / since MS uses \ for domain names!<br><pre>>> sql_user_name = %{mschap:User-Name:-%{User-Name}}<br><br></pre>/Carl <br><br><br><br><blockquote style="border-left: 2px solid rgb(0, 128, 128); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr id="EC_stopSpelling">From: Kraemer.Armin@web.de<br>To: freeradius-users@lists.freeradius.org<br>Date: Wed, 9 Aug 2006 17:43:29 +0200<br>Subject: AW: EAP identity - username check<br><br>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">



<style>
.ExternalClass .EC_shape
{;}
</style>


<style>
</style>

<style>
.ExternalClass EC_p.MsoNormal, .ExternalClass EC_li.MsoNormal, .ExternalClass EC_div.MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass EC_a:link, .ExternalClass EC_span.MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass EC_a:visited, .ExternalClass EC_span.MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass EC_span.E-MailFormatvorlage18
{font-family:Arial;color:navy;}
@page Section1
{size:595.3pt 841.9pt;}
.ExternalClass EC_div.Section1
{page:Section1;}

</style>





<div class="EC_Section1">

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I had the same problem here and my only
solution was to turn off this check of the username. </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">of the username. </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ou only have to comment out the
check_cert_cn  Entry at the eap.conf to deaktivate this. Butt his turn of the
check completely also for user certificates. I changed the username from „host/username“
to „username$“ which is mostly needed using the mschap Modul
aktivating „with_ntdomain_hack“ and adding „mschap: “
to the needed authentication part like ldap section or mysql section like </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">(mschap:User-Name)</span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Maybe there is an other solution to fix
that problem without deaktivate this feature?</span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="EC_MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Armin</span></font></p>

<div>

<div class="EC_MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="EC_MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">Von:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
freeradius-users-bounces+kraemer.armin=web.de@lists.freeradius.org
[mailto:freeradius-users-bounces+kraemer.armin=web.de@lists.freeradius.org] <b><span style="font-weight: bold;">Im Auftrag von </span></b>Carl Wahlin<br>
<b><span style="font-weight: bold;">Gesendet:</span></b> Mittwoch, 9. August 2006
17:09<br>
<b><span style="font-weight: bold;">An:</span></b> freeradius-users@lists.freeradius.org<br>
<b><span style="font-weight: bold;">Betreff:</span></b> EAP identity - username
check</span></font></p>

</div>

<p class="EC_MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p class="EC_MsoNormal" style="margin-bottom: 12pt;"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">Hello,<br>
<br>
We are trying to get machine certificates to with freeradius for WLAN.<br>
<br>
Problem:<br>
We are using the sql user database plugin as we need to return attributes
(which vlan the user belongs to, QoS etc) and it all works fine untill we
install the certificates as machine certs. Windows changes the User-Name to
host/username and that causes the username not to be correct according to what
is in the database, and also the User-Name does not match the cn in the cert.
We can change the attribute with search and replace, but then EAP gives us the
error "identity does not match the User-Name, setting from EAP
Identity". <br>
<br>
Is there a way around this? It would be nice to be able to turn off the EAP
identity - User-Name check as we really do not think it is necesary in our
solution (and do not really see a security benifit of having it).<br>
<br>
Any ideas?<br>
<br>
/Carl<br>
<br>
<br>
</span></font></p>

<div class="EC_MsoNormal" style="text-align: center;" align="center"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="EC_MsoNormal"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">With MSN Spaces email straight to your blog. Upload jokes,
photos and more. It's free! <a href="http://clk.atdmt.com/MSN/go/msnnksac0030000001msn/direct/01/?href=http://www.imagine-msn.com/spaces" target="_blank">It's free!</a></span></font></p>

</div>




</blockquote><br /><hr />With MSN Spaces email straight to your blog. Upload jokes, photos and more. It's free! <a href='http://clk.atdmt.com/MSN/go/msnnksac0030000001msn/direct/01/?href=http://www.imagine-msn.com/spaces' target='_new'>It's free!</a></body>
</html>