<div dir="ltr"><div><div>Hi, I have resolv my problem, i have create one user in users file validate hosts whose mac address are in authorized_macs and i have the users and passwords in ldap and this is my site-avaible/default file configuration in the authorize section:<br>

<br>    authorized_macs<br>        if (ok) {<br>                update control {<br>                        Auth-type := Accept<br>                                }<br>                files<br>                }<br>        else {<br>

              ldap<br>                 if (notfound){<br>                        reject<br>                }<br>             }<br><br>        eap {<br>                ok = return<br>        }<br><br></div>I suppose that is not the most elegance way of make the configuration but it runs.<br>

<br></div>Thank you for your help.<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/21 Roberto Ortega Ramiro <span dir="ltr"><<a href="mailto:roberto.ortega@esj.es" target="_blank">roberto.ortega@esj.es</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm not at work now, but.<div><br></div><div>This wil do that i want:</div><div><br></div><div><pre style="white-space:pre-wrap;word-wrap:break-word">

<pre style="word-wrap:break-word;white-space:pre-wrap">         authorize_macs
        if (ok) {
<pre style="word-wrap:break-word;white-space:pre-wrap">                 update control {
                        Auth-Type := files
                        }</pre>           }

        else {</pre><pre style="word-wrap:break-word;white-space:pre-wrap">              eap</pre><pre style="word-wrap:break-word;white-space:pre-wrap">              ldap</pre><pre style="word-wrap:break-word;white-space:pre-wrap">

             }</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="word-wrap:break-word;white-space:pre-wrap">Thank you.</pre></pre></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">

<br><br><div class="gmail_quote">
2013/6/21 Roberto Ortega Ramiro <span dir="ltr"><<a href="mailto:roberto.ortega@esj.es" target="_blank">roberto.ortega@esj.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">¿Is it posible to do a "if sentense" for validate the MAC address in authorized_macs with one user in users file (or other site) and others users can conect with hers user and password?<div><br></div>



<div>Thank you.</div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">2013/6/21 Matthew Newton <span dir="ltr"><<a href="mailto:mcn4@leicester.ac.uk" target="_blank">mcn4@leicester.ac.uk</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Fri, Jun 21, 2013 at 02:56:57PM +0200, Roberto Ortega Ramiro wrote:<br>
> I'm trying to conect using AEP-TLS one host, and i was using one wrong user<br>
> and password for connect the host with his mac.<br>
> I have undertand that this is no posible. Right?<br>
<br>
</div>You can do EAP-TLS *and* validate the MAC address. You just can't<br>
authenticate based on the MAC address only if you're doing EAP.<br>
<div><br>
Matthew<br>
<br>
<br>
--<br>
Matthew Newton, Ph.D. <<a href="mailto:mcn4@le.ac.uk" target="_blank">mcn4@le.ac.uk</a>><br>
<br>
Systems Specialist, Infrastructure Services,<br>
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom<br>
<br>
For IT help contact helpdesk extn. 2253, <<a href="mailto:ithelp@le.ac.uk" target="_blank">ithelp@le.ac.uk</a>><br>
</div><div><div>-<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><br clear="all"><div><br></div></div></div><div>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small">-- </span><br style="font-family:arial;font-size:small">
<span style="font-family:arial;font-size:small">Un saludo.</span><br style="font-family:arial;font-size:small">
<span style="font-family:arial;font-size:small">____________________</span><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Roberto Ortega</span><br style="font-family:arial;font-size:small">



<span style="font-family:arial;font-size:small">Profesor de Informática.</span><br style="font-family:arial;font-size:small"><a href="http://www.proyectoret.es/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.proyectoret.es</a><br style="font-family:arial;font-size:small">



<br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Escuelas San José Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Avd.Cortes Valencianas nº1</span><br style="font-family:arial;font-size:small">



<span style="font-family:arial;font-size:small">46015 Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">R4600489A</span><br style="font-family:arial;font-size:small">



<span style="font-family:arial;font-size:small">Tf:<a href="tel:963499011%20ext.%20262" value="+34963499011" target="_blank">963499011 ext. 262</a></span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Fax:<a href="tel:963488835" value="+34963488835" target="_blank">963488835</a></span><br style="font-family:arial;font-size:small">



<a href="http://www.escuelassj.com/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.escuelassj.com</a><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small">



<span style="font-family:arial;font-size:small">No imprimas este correo si no es necesario. Protejamos el medio ambiente.</span><br></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small">-- </span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Un saludo.</span><br style="font-family:arial;font-size:small">


<span style="font-family:arial;font-size:small">____________________</span><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Roberto Ortega</span><br style="font-family:arial;font-size:small">


<span style="font-family:arial;font-size:small">Profesor de Informática.</span><br style="font-family:arial;font-size:small"><a href="http://www.proyectoret.es/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.proyectoret.es</a><br style="font-family:arial;font-size:small">


<br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Escuelas San José Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Avd.Cortes Valencianas nº1</span><br style="font-family:arial;font-size:small">


<span style="font-family:arial;font-size:small">46015 Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">R4600489A</span><br style="font-family:arial;font-size:small">


<span style="font-family:arial;font-size:small">Tf:<a href="tel:963499011%20ext.%20262" value="+34963499011" target="_blank">963499011 ext. 262</a></span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Fax:<a href="tel:963488835" value="+34963488835" target="_blank">963488835</a></span><br style="font-family:arial;font-size:small">


<a href="http://www.escuelassj.com/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.escuelassj.com</a><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small">


<span style="font-family:arial;font-size:small">No imprimas este correo si no es necesario. Protejamos el medio ambiente.</span><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small">-- </span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Un saludo.</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">____________________</span><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Roberto Ortega</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">Profesor de Informática.</span><br style="font-family:arial;font-size:small"><a href="http://www.proyectoret.es/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.proyectoret.es</a><br style="font-family:arial;font-size:small">

<br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Escuelas San José Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Avd.Cortes Valencianas nº1</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">46015 Valencia</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">R4600489A</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">Tf:963499011 ext. 262</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Fax:963488835</span><br style="font-family:arial;font-size:small">

<a href="http://www.escuelassj.com/" style="color:rgb(17,85,204);font-family:arial;font-size:small" target="_blank">http://www.escuelassj.com</a><br style="font-family:arial;font-size:small"><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">No imprimas este correo si no es necesario. Protejamos el medio ambiente.</span><br></div>
</div>