<HTML><BODY>After changing authorize section have no result<br><br>authorize {<br><br> attr_rewrite usernamebwc {<br> attribute = User-Name<br> # may be "packet", "reply", "proxy", "proxy_reply" or "config"<br> searchin = packet<br> searchfor = "^bwc"<br> replacewith = "mobile"<br> ignore_case = no<br> new_attribute = no<br> max_matches = 10<br> <br> ## If set to yes then the replace string will be<br> ## appended to the original string<br> append = no<br> }<br><br>Again<br> Module: Checking authorize {...} for more modules to load<br>/usr/local/etc/raddb/sites-enabled/default[64]: Failed to load module "attr_rewrite".<br>/usr/local/etc/raddb/sites-enabled/default[62]: Errors parsing authorize section. <br>radiusd<br><br><br>Tue, 11 Nov 2014 09:11:34 -0500 от Alan DeKok <aland@deployingradius.com>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
<div id="">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<base target="_self" href="https://e.mail.ru/">
<div id="style_14157151000000000640_BODY">Юрий Колесник wrote:<br>
> Hi all<br>
> Need to change the username during the connection bwc to mobile. But I<br>
> can not boot module attr_rewrite. Same error on FreeRADIUS Version 2.2.0<br>
> and FreeRADIUS Version 2.1.0<br>
><br>
> I add in file site-enabled/default<br>
> <br>
> authorize {<br>
> attr_rewrite<br>
> .....<br>
> }<br>
<br>
Which refers to "attr_rewrite"...<br>
<br>
> File modules/attr_rewrite<br>
> attr_rewrite usernamebwc {<br>
<br>
Which creates a module called "usernamebwc".<br>
<br>
So... use "usernamebwc" instead of "attr_rewrite" in the "authorize"<br>
section.<br>
<br>
Alan DeKok.<br>
</div>
<base target="_self" href="https://e.mail.ru/">
</div>
</div>
</div>
</blockquote>
<br></BODY></HTML>