Failed to find attr_rewrite

Юрий Колесник cement3000 at mail.ru
Tue Nov 11 09:15:55 CET 2014


 Hi all
Need to change the username during the connection bwc to mobile . But I can not boot module attr_rewrite . Same error on FreeRADIUS Version 2.2.0 and FreeRADIUS Version 2.1.0


I add in file  site- enabled / default

authorize {
      attr_rewrite
.....
}

File modules/attr_rewrite
attr_rewrite usernamebwc {
        attribute = User-Name
        # may be "packet", "reply", "proxy", "proxy_reply" or "config"
        searchin = packet
        searchfor = "^bwc"
        replacewith = "mobile"
        ignore_case = no
        new_attribute = no
        max_matches = 10

        ## If set to yes then the replace string will be
        ## appended to the original string
        append = no
}

When I run Freeradius in debug mode

GNU General Public License v2. 
Starting - reading configuration files ...
including configuration file /usr/local/etc/raddb/radiusd.conf
including configuration file /usr/local/etc/raddb/proxy.conf
including configuration file /usr/local/etc/raddb/clients.conf
including files in directory /usr/local/etc/raddb/modules/
including configuration file /usr/local/etc/raddb/modules/files
including configuration file /usr/local/etc/raddb/modules/realm
including configuration file /usr/local/etc/raddb/modules/attr_filter
including configuration file /usr/local/etc/raddb/modules/chap
including configuration file /usr/local/etc/raddb/modules/attr_rewrite
including configuration file /usr/local/etc/raddb/modules/preprocess
including configuration file /usr/local/etc/raddb/modules/acct_unique
including configuration file /usr/local/etc/raddb/modules/detail
including configuration file /usr/local/etc/raddb/modules/expr
including configuration file /usr/local/etc/raddb/modules/pap
including configuration file /usr/local/etc/raddb/sqlacct.conf
including configuration file /usr/local/etc/raddb/sqlauth.conf
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/default
.....
 Module: Checking authorize {...} for more modules to load
/usr/local/etc/raddb/sites-enabled/default[63]: Failed to find "attr_rewrite" in the "modules" section.
/usr/local/etc/raddb/sites-enabled/default[62]: Errors parsing authorize section. 

ls /usr/local/lib | grep attr_rew
rlm_attr_rewrite-2.1.10.la
rlm_attr_rewrite-2.1.10.so
rlm_attr_rewrite.a
rlm_attr_rewrite.la
rlm_attr_rewrite.so

Other modules are loaded and working correctly rlm_sql_oracle , rlm_attr_filter.
I think the error in the configuration attr_rewrite , but where ?






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141111/7d221cfb/attachment.html>


More information about the Freeradius-Users mailing list