<div dir="ltr"><br><div>Hi,</div><div><br></div><div>I have a simple doubt; I have seen many times a couple of people saying they prefer to use unlang than the suffix directive; what´s the advantage of - supposing proxy.conf is adequately configured, instead of doing</div>
<div><br></div><div><br></div><div>suffix</div><div><br></div><div>do instead (ignore the if part, I know it is missing in the example above, it is here just for the sake of clarity):</div><div><br></div><div><div><br></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>
if (Realm == "<a href="http://iscte.pt">iscte.pt</a>") {</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 := EDUROAM</div><div> }</div><div> }</div><div> }</div><div><br></div><div>Regards,</div>
<div>Rui</div></div><div><br></div><div>Regards,</div><div>Rui Ribeiro</div><div><br></div></div>