Sorry to ask again the same, but I don't know if it's OK that Freeradius add the attribute Realm with the regex value.<br><br>Thank you very mutch. <br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
rad_recv: Access-Request packet from host 127.0.0.1 port 60112, id=208, length=68<br> User-Name = "<a href="mailto:XXX@domain.es" target="_blank">XXX@domain.es</a>"<br>
User-Password = "YYY"<br> NAS-IP-Address = 127.0.1.1<br> NAS-Port = 0<br>+- entering group authorize<br>++[preprocess] returns ok<br>++[mschap] returns noop<br> rlm_realm: Looking up realm "<a href="http://domain.es" target="_blank">domain.es</a>" for User-Name = "<a href="mailto:XXX@domain.es" target="_blank">XXX@domain.es</a>"<br>
rlm_realm: Found realm "~(domain)+"<br> rlm_realm: Adding Stripped-User-Name = "XXX"<br> rlm_realm: Adding Realm = "~(domain)+"<br> rlm_realm: Authentication realm is LOCAL.<br>
++[suffix] returns noop<br>
rlm_eap: No EAP-Message, not doing EAP<br>++[eap] returns noop<br>++? if ("%{Realm}" =~ /(temp\.)?domain\.es$/)<br> expand: %{Realm} -> ~(domain)+<br>? Evaluating ("%{Realm}" =~ /(temp\.)?domain\.es$/) -> FALSE<br>
++? if ("%{Realm}" =~ /(temp\.)?domain\.es$/) -> FALSE<br>++[files] returns noop<br> expand: %{Realm} -> ~(domain)+<br>++- entering switch %{Realm}<br>+++- entering case <br>++++[control] returns noop<br>
+++- case returns noop<br>++- switch %{Realm} returns noop<br><br>I can resolve this adding this to proxy.conf:<br><br>### /etc/freeradius/proxy.conf<br><br>realm "<a href="http://domain.es" target="_blank">domain.es</a>" {<br>
authhost = LOCAL # not strictly necessary<br> accthost = LOCAL # not strictly necessary<br>}<br><br>realm "<a href="http://temp.domain.es" target="_blank">temp.domain.es</a>" {<br> authhost = LOCAL # not strictly necessary<br>
accthost = LOCAL # not strictly necessary<br>}<br><br>realm "~(domain)+" {<br> authhost = LOCAL # not strictly necessary<br> accthost = LOCAL # not strictly necessary<br>}<br><br>
<br>
But I don't know if that is the best way to resolve my problem, so I would like to reinforce my decision.<br><br>Thanks in advance and sorry for my english.<br><font color="#888888"><br clear="all"><br>-- <br>____________________<br>
<br> Ana Gallardo Gómez<br>
____________________<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>____________________<br><br> Ana Gallardo Gómez<br>____________________<br>