<div dir="ltr">Thanks. Got it! <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 2:46 PM, Stefan Winter <span dir="ltr">&lt;<a href="mailto:stefan.winter@restena.lu" target="_blank">stefan.winter@restena.lu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class=""><br>
&gt; I want to kick out some users on a particular realm while try and<br>
&gt; authenticate others. This done on the basis of the NAI. For example<br>
</div>&gt; <a href="mailto:abc@example.com">abc@example.com</a> &lt;mailto:<a href="mailto:abc@example.com">abc@example.com</a>&gt; is allowed while<br>
&gt; <a href="mailto:xyz@example.com">xyz@example.com</a> &lt;mailto:<a href="mailto:xyz@example.com">xyz@example.com</a>&gt; is not allowed to authenticate.<br>
<br>
Forget it: almost all common EAP methods allow to forge an outer<br>
identity which does NOT match the actual login.<br>
<br>
That is, your bad user <a href="mailto:xyz@example.com">xyz@example.com</a> would simply use <a href="mailto:abc@example.com">abc@example.com</a><br>
as its anonymous outer identity.<br>
<br>
In EAP, the NAS/AP never learns the identity of the user; only of the<br>
realm with some high degree of certainty.<br>
<br>
Only the RADIUS server can make that decision.<br>
<br>
Get over it :-)<br>
<br>
Greetings,<br>
<br>
Stefan Winter<br>
<div class=""><br>
&gt;<br>
&gt; I want to make this decision as early as possible, so I thought the<br>
&gt; eap_method_init is the right place. But that does not seem to work. If I<br>
&gt; do data-&gt;state=FAILURE and return NULL in the buildREquest then the<br>
&gt; middleboxes such as freeRadius that proxy the request think I am dead<br>
</div>&gt; and stop forwarding even when <a href="mailto:abc@example.com">abc@example.com</a> &lt;mailto:<a href="mailto:abc@example.com">abc@example.com</a>&gt;<br>
<div class="">&gt; tries to connect. How to overcome this.<br>
&gt;<br>
&gt; Thanks Jouni and the list for the very fast responses.<br>
&gt; Khali<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; HostAP mailing list<br>
&gt; <a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
&gt;<br>
<br>
<br>
--<br>
Stefan WINTER<br>
Ingenieur de Recherche<br>
Fondation RESTENA - Réseau Téléinformatique de l&#39;Education Nationale et<br>
de la Recherche<br>
6, rue Richard Coudenhove-Kalergi<br>
L-1359 Luxembourg<br>
<br>
Tel: <a href="tel:%2B352%20424409%201" value="+3524244091">+352 424409 1</a><br>
Fax: <a href="tel:%2B352%20422473" value="+352422473">+352 422473</a><br>
<br>
PGP key updated to 4096 Bit RSA - I will encrypt all mails if the<br>
recipient&#39;s key is known to me<br>
<br>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0xC0DE6A358A39DC66" target="_blank">http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0xC0DE6A358A39DC66</a><br>
<br>_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br></blockquote></div><br></div>