<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Luke,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Can you send a debug log of what happens when you send it from your console server please (the full log, no redactions).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freeradius-users-bounces+stefan.paetow=diamond.ac.uk@lists.freeradius.org
 [mailto:freeradius-users-bounces+stefan.paetow=diamond.ac.uk@lists.freeradius.org]
<b>On Behalf Of </b>Luke Ramsden<br>
<b>Sent:</b> 13 December 2013 14:30<br>
<b>To:</b> FreeRadius users mailing list<br>
<b>Subject:</b> Re: LDAP + Active Directory Authentication Issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Thank you all. With your help I have made progress. <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I can now successfully authenticate the user 'test' against Active Directory if I open up another terminal and run:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">radtest -t mschap test password localhost 0 testing 123<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However, the 'no Auth-Type found' error still occurs if I send the request from my console server. Is this because the request from the console server needs to specify use of mschap?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks again<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Dec 12, 2013 at 10:10 PM, <<a href="mailto:stefan.paetow@diamond.ac.uk" target="_blank">stefan.paetow@diamond.ac.uk</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">Luke,<br>
<br>
Unless you are storing passwords in Active Directory in plain text or you want to use Kerberos authentication, you will have to use MSCHAPv2 (or its EAP equivalent, EAP-MSCHAPv2).<br>
<br>
In that case, follow <a href="http://confluence.diamond.ac.uk/display/PAAUTH/Using+Active+Directory+as+authentication+source" target="_blank">
http://confluence.diamond.ac.uk/display/PAAUTH/Using+Active+Directory+as+authentication+source</a> and see if that's more useful than the URL you originally posted.<br>
<br>
And please, post a full debug log of an authentication attempt. It's much appreciated by the gurus on the list. :-)<br>
<br>
Stefan<br>
<br>
<br>
________________________________<o:p></o:p></p>
</div>
<p class="MsoNormal">From: freeradius-users-bounces+stefan.paetow=<a href="mailto:diamond.ac.uk@lists.freeradius.org">diamond.ac.uk@lists.freeradius.org</a> [freeradius-users-bounces+stefan.paetow=<a href="mailto:diamond.ac.uk@lists.freeradius.org">diamond.ac.uk@lists.freeradius.org</a>]
 on behalf of Luke Ramsden [<a href="mailto:lukermsdn@gmail.com">lukermsdn@gmail.com</a>]<o:p></o:p></p>
<div>
<p class="MsoNormal">Sent: Thursday, December 12, 2013 6:48 PM<o:p></o:p></p>
</div>
<p class="MsoNormal">To: <a href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</a><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Subject: LDAP + Active Directory Authentication Issue<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi, I am trying to authenticate users against Active Directory using LDAP. I can perform the initial bind using an ldap bind account. I can then successfully find the Distinguished Name in Active Directory given
 a domain user's username. I would now like to re-bind using that Distinguished Name in order to authenticate the password they supplied as described in point 4 here:<br>
<br>
<a href="http://thecarlhall.wordpress.com/2011/01/04/ldap-authentication-authorization-dissected-and-digested/" target="_blank">http://thecarlhall.wordpress.com/2011/01/04/ldap-authentication-authorization-dissected-and-digested/</a><br>
<br>
The problem I am having is my server errors out with 'No Auth-Type found' come authentication time. I added 'set_auth_type = yes' to mods-available/ldap but it seems to have had no effect.<br>
<br>
I am very new to this so am still finding my feet - can anyone help?<br>
<br>
<br>
Subset of output from terminal (redacted some personal info):<br>
<br>
(0) ldap : Performing search in 'ou=Users,dc=example,dc=domain,dc=com' with filter '(uid=example-user)'<br>
(0) ldap : Waiting for search result...<br>
(0) ldap : User object found at DN "CN=Name,OU=Users,DC=example,DC=domain,DC=com"<br>
rlm_ldap (ldap): Released connection (4)<br>
rlm_ldap (ldap): Closing connection (0): Too many free connections (5 > 3)<br>
(0)    [ldap] = ok<br>
(0)    [chap] = noop<br>
(0)    [mschap] = noop<br>
(0)    [digest] = noop<br>
(0) suffix : No '@' in User-Name = 'example-user', looking up realm NULL<br>
(0) suffix : No such realm "NULL"<br>
(0)    [suffix] = noop<br>
(0) eap : No EAP-Message, not doing EAP<br>
(0)    [eap] = noop<br>
(0)    [files] = noop<br>
(0)    [expiration] = noop<br>
(0)    [logintime] = noop<br>
(0) WARNING: pap : No "known good" password found for the user. Not setting Auth-Type.<br>
(0) WARNING: pap : Authentication will fail unless a "known good" password is available.<br>
(0)    [pap] = noop<br>
(0) } #  authorize = ok<br>
(0) ERROR: No Auth-Type found: rejecting the user via Post Auth-Type = Reject<br>
(0) Failed to authenticate the user.<br>
(0) Using Post-Auth-Type Reject<br>
<br>
Many thanks<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">--<br>
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt
 by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.<br>
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br>
<br>
<br>
<br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>

<br><P align=justify> </P>

<P align=justify>--  </P>

<P align=justify>This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<BR>Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <BR>Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<BR>Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<BR> </P>
<br></body>
</html>