<div dir="ltr"><br><div>Dears,</div><div><br></div><div>If I have an outer tunnel like in freeradius 2.2.2 like the following, why should Stripped-User-Name be known in the following interactions that visit the outer tunnel, and the whole if block is executed each time? I think it was supposed to have Stripped-User-Name set on the first entry, and then have it available to the next interactions.</div>
<div><br></div><div>Regards,</div><div>Rui Ribeiro</div><div><br></div><div><div>authorize {</div><div> auth_log</div><div> if (!(Stripped-User-Name)) {</div><div><div> if (!(User-Name =~ /^([^@]*)@(.+)$/)) {</div>
<div> update reply {</div><div> Reply-Message := "malformed username"</div><div> }</div><div> reject</div><div> }</div><div> else {</div>
<div> update request {</div><div> Stripped-User-Name := "%{1}"</div><div> Realm := "%{2}"</div><div> }</div></div><div> if (Realm == "MyDomain") {</div>
<div> update control {</div><div> Proxy-To-Realm := LOCAL</div><div> }</div><div> }</div><div> else {</div><div> update control {</div>
<div> Proxy-To-Realm := TO_EDUROAM</div><div> }</div><div> }</div><div> }</div><div> }</div><div> <span class="" style="white-space:pre"> </span>eap {</div>
<div> ok = return</div><div> }</div><div>}</div></div><div><br></div><div> </div></div>