rewrite accounting request

Ashraf Al-Basti Ashraf.Albasti at jt.net.jo
Mon Feb 5 11:38:12 CET 2007


i change the process as follow to replace the username with a one from a 
file but i have the following error,
attr_rewrite fixusername {
                attribute = User-Name
                # may be "packet", "reply", "proxy", "proxy_reply" or 
"config"
                searchin = proxy
                searchfor ="wanadoo"
                replacewith = %{exec:/bin/cat /var/www/html/user}
                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
        }

error
radius_xlat:  'wanadoo'
WARNING: Attempt to use unknown xlat function, or non-existent attribute 
in string %{exec:/bin/cat}
radius_xlat:  ''
rlm_attr_rewrite: xlat on replace string failed.


Alan DeKok wrote:

>Ashraf Al-Basti wrote:
>  
>
>>Thanks Alan......
>>But do have any idea to work around that?
>>    
>>
>
>  See the FAQ.  If the NAS doesn't send data in an accounting packet, go
>read the NAS documentation to see how to configure it to send that
>information.
>
>  But send User-Password?  Nope.  It's impossible.
>
>  Alan DeKok.
>--
>  http://deployingradius.com       - The web site of the book
>  http://deployingradius.com/blog/ - The blog
>- 
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070205/1b0f898f/attachment.html>


More information about the Freeradius-Users mailing list