Sorry to bother again, how should I rewrite the unlang for the condition
that if the Called-Station-Id contains "eduroam"?

 if (Called-Station-Id == "xx-xx-xx-xx-xx-xx:eduroam") {

On Fri, May 18, 2012 at 10:38 AM, C.F. Yeung <[email protected]> wrote:

> Got it working as follow.
>
>         if (Called-Station-Id == "xx-xx-xx-xx-xx-xx:eduroam") {
>                 eap_new {
>                         ok = return
>                 }
>         }
>         if (Realm == "newdomain.com") {
>                 eap_new {
>                         ok = return
>                 }
>         }
>         else {
>                 eap {
>                         ok = return
>                 }
>         }
>
>
> On Fri, May 18, 2012 at 9:11 AM, C.F. Yeung <[email protected]> wrote:
>
>> 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?
>>
>>         if(Called-Station-Id == "xx-xx-xx-xx-xx-xx:duroam") {
>>                 eap_new {
>>                         ok = return
>>                 }
>>         }
>>         elseif(Realm == "newdomain.com") {
>>                 eap_new {
>>                         ok = return
>>                 }
>>         }
>>         else {
>>                 eap {
>>                         ok = return
>>                  }
>>         }
>>
>> On Fri, May 18, 2012 at 5:03 AM, alan buxey <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> >    Found Auth-Type = eap_new
>>> >    Found Auth-Type = EAP
>>>
>>> no no. you've got to have 2 totally different eap mpdules defined , and
>>> where they
>>> could be you need to ensure that you have 2 types of request configured.
>>>  you are
>>> better off having a new virtual-server that you direct that request into
>>> and change 'eap' in it
>>> (wherever it appears) to eap_new
>>>
>>>
>>> alan
>>> -
>>> List info/subscribe/unsubscribe? See
>>> http://www.freeradius.org/list/users.html
>>>
>>
>>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to