I was thinking about this too. Do we need separate ldap call to retrieve certain attributes from AD, and then use ntlm_auth for authentication?<br><br>Schilling<br><br><div class="gmail_quote">On Wed, Feb 2, 2011 at 10:23 AM, Brett Littrell <span dir="ltr"><<a href="mailto:Blittrell@musd.org">Blittrell@musd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div style="margin: 4px 4px 1px; font: 10pt Segoe UI;">
<div>Hey Brian,</div>
<div> </div>
<div>    Very interesting, I would have thought Authenticate came first then Authorize since you need to authenticate in order to be authorized.  If that is the case and say you pull the vlan ids from ldap, or some other directory, how would Freeradius know what those values are prior to knowing who you are?   Or are you saying that the way the program loads the config the authorize section simply gets read first?</div>

<div> </div>
<div><div class="im">
<div>Brett Littrell</div>
<div>Network Manager</div>
<div>MUSD</div>
<div>CISSP, CCSP, CCVP, MCNE</div><br><br></div><div><div></div><div class="h5">>>> On Wednesday, February 02, 2011 at 12:05 AM, in message <<a href="mailto:20110202080557.GA2368@talktalkplc.com" target="_blank">20110202080557.GA2368@talktalkplc.com</a>>, Brian Candler <<a href="mailto:B.Candler@pobox.com" target="_blank">B.Candler@pobox.com</a>> wrote:<br>
</div></div></div><div><div></div><div class="h5">
<table style="margin: 0px 0px 0px 15px; font-size: 1em;" bgcolor="#f3f3f3" border="0">
<tbody>
<tr>
<td>
<div style="border-left: 1px solid rgb(5, 5, 5); padding-left: 7px;">I'd say that's not exactly true, or is not very clear anyway.<br><br>(1) freeradius always runs the authorize section first, then then<br>authenticate section<br>
<br>(2) the authorize section is where you do any sort of database lookups<br>needed, both to determine the reply attributes to send (in case the user<br>does authenticate successfully), and at the same time to find any<br>
information needed to perform user authentication, such as the expected<br>password (Cleartext-Password in the control list)<br><br>(3) the authenticate section normally uses that extra info to perform the<br>authentication. If it fails, the reply attributes are stripped out and a<br>
reject is sent.<br><br>Using ntlm_auth is a special case, in that it can authenticate without<br>knowing the password: it delegates the whole authentication to a different<br>database.<br><br>That's fine, but if you don't have anything in your authorize section then<br>
you'll just be sending back an empty "Access-Accept" without any reply<br>attributes.  In some applications this may be sufficient.<br><br>This sort of delegation is rather like proxying, and indeed, you can run IAS<br>
on your AD box and just proxy to it.<br><br>IAS has a limitation of 50 RADIUS client IPs (unless you have Windows Server<br>Enterprise edition), but fortunately each freeradius server you put in front<br>of it only counts as one client :-)<br>
<br>Regards,<br><br>Brian.<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></td></tr></tbody></table>
</div></div></div>
<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></blockquote></div><br>