remove the white space

Ashraf Al-Basti Ashraf.Albasti at
Tue Feb 6 10:13:45 CET 2007

i have successfully replace the username from a file but it add "\n" or 
a white space for it, i'm using echo or cat command and the same result, 
here is the output for the debug,
please advice how can i remove it.....

modcall: entering group pre-proxy for request 1
radius_xlat:  'wanadoo'
radius_xlat: Running registered xlat function of module exec for string 
'/bin/echo 11111111111111'
rlm_exec (exec): Executing /bin/echo 11111111111111
radius_xlat:  '/bin/echo 11111111111111'
Exec-Program: /bin/echo 11111111111111
Exec-Program output: 11111111111111
Exec-Program-Wait: plaintext: 11111111111111
Exec-Program: returned: 0
rlm_exec (exec): result 0
radius_xlat:  '11111111111111 '
rlm_attr_rewrite: Changed value for attribute User-Name from 'wanadoo' 
to '11111111111111 '
rlm_attr_rewrite: Could not find value pair for attribute User-Name
  modcall[pre-proxy]: module "fixusername" returns ok for request 1
expands to /var/log/radius/radacct/
  modcall[pre-proxy]: module "pre_proxy_log" returns ok for request 1
modcall: group pre-proxy returns ok for request 1
Sending Access-Request of id 1 to
        User-Name = "11111111111111\n"
        NAS-IP-Address =
        Called-Station-Id = "080010101"
        User-Password = "11111111111111"
        Proxy-State = 0x31

More information about the Freeradius-Users mailing list