ok.. the suffix patch works and get out the @realm...<div><br><div>but monthlycounter is my trouble more bigger... because not stripped-user-name in the queries...</div><div><br></div><div>is possible to do the same patch, in sql/mysql/counter.conf ?? where said.</div>
<div><br></div><div><div>sqlcounter monthlycounter1 {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>counter-name = Monthly-Session-Time</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>check-name = Max-Monthly-Session</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>reply-name = Session-Timeout</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>sqlmod-inst = sql1 </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>key = User-Name <---- use the if { your patch} ???</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>reset = monthly</div><div><br></div><br><div class="gmail_quote">2012/9/27 Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 27/09/12 17:06, Tony Peña wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i put the hint file more below after radiusd -X.. check again please...<br>
i miss policyfilter...<br>
i send again both.<br>
<br>
/etc/freeradius/hints<br>
<br>
DEFAULT Suffix == "@<a href="http://my.domain.cu" target="_blank">my.domain.cu</a>", Strip-User-Name<br>
</blockquote>
<br></div>
Don't do this. It doesn't work reliably, because you modify the username, which breaks some things.<br>
<br>
Stop using the hints file, and instead do something like this:<br>
<br>
authorize {<br>
...<br>
if (User-Name =~ /^(.+)@<a href="http://my.domain.co/" target="_blank">my.domain.co/</a>) {<br>
update request {<br>
Stripped-User-Name := "%{1}"<br>
}<br>
}<br>
...<br>
}<br>
<br>
<br>
As Alan has pointed out, you can also do this with the "realm" module:<br>
<br>
authorize {<br>
...<br>
suffix<br>
...<br>
}<br>
<br>
...but to do that, you ALSO need to edit proxy.conf and define a fake local realm. Personally I find this confusing and like to separate proxy realms from username realms.<div class="HOEnZb"><div class="h5"><br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#888888"><font color="#888888">Antonio Pe</font><span><font color="#888888">ñ</font></span><font color="#888888">a</font><span></span><br>
<font color="#888888">Secure email with PGP 0x8B021001 available at <a href="http://pgp.mit.edu" target="_blank">http://pgp.mit.edu</a><br></font></font><font color="#888888">
<font color="#888888">Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001</font></font><br>
</div></div>