Sorry to bother again, how should I rewrite the unlang for the condition that if the Called-Station-Id contains "eduroam"?<div><br></div><div><span style> if (Called-Station-Id == "xx-xx-xx-xx-xx-xx:eduroam") {</span> <br>
<br><div class="gmail_quote">On Fri, May 18, 2012 at 10:38 AM, C.F. Yeung <span dir="ltr"><<a href="mailto:yeungcf@gmail.com" target="_blank">yeungcf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Got it working as follow.<div><br></div><div><div> if (Called-Station-Id == "xx-xx-xx-xx-xx-xx:eduroam") {</div><div> eap_new {</div><div> ok = return</div><div> }</div>
<div> }</div><div> if (Realm == "<a href="http://newdomain.com" target="_blank">newdomain.com</a>") {</div><div class="im"><div> eap_new {</div><div> ok = return</div>
<div> }</div>
<div> }</div><div> else {</div><div> eap {</div><div> ok = return</div><div> }</div><div> }</div></div></div><div class="HOEnZb"><div class="h5"><div>
<br><br><div class="gmail_quote">On Fri, May 18, 2012 at 9:11 AM, C.F. Yeung <span dir="ltr"><<a href="mailto:yeungcf@gmail.com" target="_blank">yeungcf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Alan, it's fixed with the help by Phil. I want to add one more condition to call the eap_new module based on Realm. The following elseif condition is wrong. How should I write the correct unlang?<div>
<br></div><div>
<div> if(Called-Station-Id == "xx-xx-xx-xx-xx-xx:duroam") {</div><div> eap_new {</div><div> ok = return</div><div> }</div><div> }</div><div> elseif(Realm == "<a href="http://newdomain.com" target="_blank">newdomain.com</a>") {</div>
<div> eap_new {</div><div> ok = return</div><div> }</div><div> }</div><div> else {</div><div> eap {</div><div> ok = return</div>
<div><div>
<div> }</div><div> }</div><br><div class="gmail_quote">On Fri, May 18, 2012 at 5:03 AM, alan buxey <span dir="ltr"><<a href="mailto:A.L.M.Buxey@lboro.ac.uk" target="_blank">A.L.M.Buxey@lboro.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><br>
> Found Auth-Type = eap_new<br>
> Found Auth-Type = EAP<br>
<br>
</div>no no. you've got to have 2 totally different eap mpdules defined , and where they<br>
could be you need to ensure that you have 2 types of request configured. you are<br>
better off having a new virtual-server that you direct that request into and change 'eap' in it<br>
(wherever it appears) to eap_new<br>
<span><font color="#888888"><br>
<br>
alan<br>
</font></span><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></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>