<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: EAP problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">You _cannot_ read the unicodePwd attribute (where the actual passwd<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">lies) from AD. It can only be written to, and then only under certain<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">conditions (SSL/TLS connection, and if not written by an admin, then a<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">delete/add must be performed in the same operation).<BR>
<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">This is why you should use ntlm_auth w/PEAP for AD auth. You could be<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">able to auth against LDAP (PAP) in a TTLS situation (not tried that yet,<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">so I don't know how it would work), but you will never retrieve the<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">unicodePwd attribute.<BR>
<BR>
</FONT><FONT SIZE=2 FACE="Courier New">></FONT><FONT SIZE=2 FACE="Courier New">Hope this helps.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">OK. Back to the drawing board... I looked at my options regarding the authenitication method on the W2K client and noticed that I can also used Protected EAP (PEAP). So I switched the client to this. When I tried the authenitication again, this time I get:</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">rlm_eap: Identity does not match User-Name, setting from EAP Identity</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">I did more searches on this error, and tried several suggestions, from using the hints file:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">DEFAULT Prefix == "MEM\\", Strip-User-Name = Yes</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Hint = "MEM",</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Service-Type = Framed-User,</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Framed-Protocol = PPP</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">I also ensured that use_with_nt_hack was set to "no" in the preprocessor section. I modified the proxy.conf file for the local domain:</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">realm MEM {</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> type = radius</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> authhost = LOCAL</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> accthost = LOCAL</FONT>
<BR><FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">and no matter what I do I still get this error... </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">There was a post on the mailing list that mentioned that some patches were applied to freeradius in Nov 2004, I took a look at the freeradius version I was using on my Fedora Core 3 box and it shows:</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">radiusd: FreeRADIUS Version 1.0.1, for host , built on Oct 6 2004 at 05:25:02</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Copyright (C) 2000-2003 The FreeRADIUS server project.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A</FONT>
<BR><FONT SIZE=2 FACE="Courier New">PARTICULAR PURPOSE.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">You may redistribute copies of FreeRADIUS under the terms of the</FONT>
<BR><FONT SIZE=2 FACE="Courier New">GNU General Public License.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">For more information about these matters, see the file named COPYRIGHT.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">I wonder if this is now my problem.....</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2 FACE="Courier New">I have attached the debug output:</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">rad_recv: Access-Request packet from host 172.16.5.71:1645, id=235, length=93</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> User-Name = "MEM\\RGraham"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Service-Type = Framed-User</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Framed-MTU = 1500</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> NAS-IP-Address = 172.16.5.71</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> NAS-Port = 24</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> EAP-Message = 0x02000010014d454d5c5247726168616d</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Message-Authenticator = 0xeeeaea4ed86a064f533da57687432cb4</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rad_lowerpair: User-Name now 'mem\rgraham'</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Processing the authorize section of radiusd.conf</FONT>
<BR><FONT SIZE=2 FACE="Courier New">modcall: entering group authorize for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> hints: Matched DEFAULT at 41</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "preprocess" returns ok for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">radius_xlat: '/var/log/radius/radacct/172.16.5.71/auth-detail-20050630'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/radius/radacct/172.16.5.71/auth-detail-20050630</FONT></P>
<P><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "auth_log" returns ok for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "attr_filter" returns noop for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "chap" returns noop for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "mschap" returns noop for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rlm_realm: No '@' in User-Name = "rgraham", looking up realm NULL</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rlm_realm: No such realm "NULL"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "suffix" returns noop for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rlm_eap: EAP packet type response id 0 length 16</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rlm_eap: No EAP Start, assuming it's an on-going EAP conversation</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "eap" returns updated for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "files" returns notfound for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: - authorize</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: performing user authorization for rgraham</FONT>
<BR><FONT SIZE=2 FACE="Courier New">radius_xlat: '(sAMAccountName=rgraham)'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">radius_xlat: 'ou=mem users,dc=mem-ins,dc=com'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: ldap_get_conn: Checking Id: 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: ldap_get_conn: Got Id: 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: attempting LDAP reconnection</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: (re)connect to mem-dc.mem-ins.com:389, authentication 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: bind as cn=administrator,ou=admin,ou=mem users,dc=mem-ins,dc=com/{secret} to mem-dc.mem-ins.com:389</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: waiting for bind result ...</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: Bind was successful</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: performing search in ou=mem users,dc=mem-ins,dc=com, with filter (sAMAccountName=rgraham)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: looking for check items in directory...</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: looking for reply items in directory...</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: user rgraham authorized to use remote access</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_ldap: ldap_release_conn: Release Id: 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authorize]: module "ldap" returns ok for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">modcall: group authorize returns updated for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rad_check_password: Found Auth-Type EAP</FONT>
<BR><FONT SIZE=2 FACE="Courier New">auth: type "EAP"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Processing the authenticate section of radiusd.conf</FONT>
<BR><FONT SIZE=2 FACE="Courier New">modcall: entering group authenticate for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rlm_eap: Identity does not match User-Name, setting from EAP Identity.</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> rlm_eap: Failed in handler</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> modcall[authenticate]: module "eap" returns invalid for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">modcall: group authenticate returns invalid for request 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New">auth: Failed to validate the user.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Delaying request 0 for 1 seconds</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Finished request 0</FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>