<div dir="ltr">Thank you all. With your help I have made progress. <div><br></div><div>I can now successfully authenticate the user 'test' against Active Directory if I open up another terminal and run:</div><div>radtest -t mschap test password localhost 0 testing 123</div>
<div><br></div><div>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?</div><div>
<br></div><div>Thanks again</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 10:10 PM, <span dir="ltr"><<a href="mailto:stefan.paetow@diamond.ac.uk" target="_blank">stefan.paetow@diamond.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">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>
________________________________<br>
</div>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>]<br>
<div class="im">Sent: Thursday, December 12, 2013 6:48 PM<br>
</div>To: <a href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</a><br>
<div class="im HOEnZb">Subject: LDAP + Active Directory Authentication Issue<br>
<br>
</div><div class="HOEnZb"><div class="h5">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<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<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><br>
</div></div></blockquote></div><br></div>