remove the white space

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


Dear,
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
radius_xlat:  
'/var/log/radius/radacct/172.16.5.188/pre-proxy-detail-20070206'
rlm_detail: 
/var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d 
expands to /var/log/radius/radacct/172.16.5.188/pre-proxy-detail-20070206
  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 10.3.83.11:1812
        User-Name = "11111111111111\n"
        NAS-IP-Address = 10.0.0.2
        Called-Station-Id = "080010101"
        User-Password = "11111111111111"
        Proxy-State = 0x31




More information about the Freeradius-Users mailing list