<HTML><BODY>Hi all<br><span id="result_box" lang="en"><span class="hps">Need to change</span> <span class="hps">the username</span> <span class="hps">during the connection bwc to mobile</span><span>.</span> <span class="hps">But I can</span> <span class="hps">not boot</span> <span class="hps">module</span> <span class="hps">attr_rewrite</span><span>.</span> <span class="hps">Same</span> <span class="hps">error</span> <span class="hps">on</span> <span class="hps">FreeRADIUS Version 2.2.0</span> <span class="hps">and</span> <span class="hps">FreeRADIUS Version 2.1.0</span><br><br><br> I add in file <span class="hps atn">site-</span><span>enabled</span><span class="hps">/</span>default<br><span class="hps atn"><br>authorize {</span><br> <span class="hps">attr_rewrite</span><br> <span class="hps">.....</span><br> <span class="hps">}</span><br></span><br>File modules/attr_rewrite<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><span id="result_box" class="short_text" lang="en"><span class="hps">When I run</span></span> Freeradius in debug mode<br><br>GNU General Public License v2. <br>Starting - reading configuration files ...<br>including configuration file /usr/local/etc/raddb/radiusd.conf<br>including configuration file /usr/local/etc/raddb/proxy.conf<br>including configuration file /usr/local/etc/raddb/clients.conf<br>including files in directory /usr/local/etc/raddb/modules/<br>including configuration file /usr/local/etc/raddb/modules/files<br>including configuration file /usr/local/etc/raddb/modules/realm<br>including configuration file /usr/local/etc/raddb/modules/attr_filter<br>including configuration file /usr/local/etc/raddb/modules/chap<br>including configuration file /usr/local/etc/raddb/modules/attr_rewrite<br>including configuration file /usr/local/etc/raddb/modules/preprocess<br>including configuration file /usr/local/etc/raddb/modules/acct_unique<br>including configuration file /usr/local/etc/raddb/modules/detail<br>including configuration file /usr/local/etc/raddb/modules/expr<br>including configuration file /usr/local/etc/raddb/modules/pap<br>including configuration file /usr/local/etc/raddb/sqlacct.conf<br>including configuration file /usr/local/etc/raddb/sqlauth.conf<br>including files in directory /usr/local/etc/raddb/sites-enabled/<br>including configuration file /usr/local/etc/raddb/sites-enabled/default<br>.....<br> Module: Checking authorize {...} for more modules to load<br>/usr/local/etc/raddb/sites-enabled/default[63]: Failed to find "attr_rewrite" in the "modules" section.<br>/usr/local/etc/raddb/sites-enabled/default[62]: Errors parsing authorize section. <br><br>ls /usr/local/lib | grep attr_rew<br>rlm_attr_rewrite-2.1.10.la<br>rlm_attr_rewrite-2.1.10.so<br>rlm_attr_rewrite.a<br>rlm_attr_rewrite.la<br>rlm_attr_rewrite.so<br><br><span id="result_box" lang="en"><span class="hps">Other modules</span> <span class="hps">are loaded and</span> <span class="hps">working correctly</span> <span class="hps">rlm_sql_oracle</span></span>, rlm_attr_filter.<br><span id="result_box" class="short_text" lang="en"><span class="hps">I think</span> <span class="hps">the error</span> <span class="hps">in the configuration attr_rewrite</span><span>, but where</span></span>?<br><br><br><br><br><br><br></BODY></HTML>