BUG in Freeradius2 XMLRPC Sync



  • Hello and sorry if I post here, but I have lost my redmine username and cannot find a way to recover it.

    I discovered a strange issue in XMLRPC sync on freeradius2 package. I'm running pfsense 2.2.6 an freeradius2 1.6.19

    Hitting Save button in web GUI I have this response:

    ---SENT---
    POST /xmlrpc.php HTTP/1.0
    User-Agent: PEAR XML_RPC
    Host: 192.168.232.2
    Authorization: Basic YWRtaW46Q2lhb0dyYXppZUMxNDBDMTQw
    Content-Type: text/xml
    Content-Length: 342
    
    pfsense.exec_php
    
    XXXXXXXXXXX
    
    require_once('/usr/local/pkg/freeradius.inc');
    freeradius_all_after_XMLRPC_resync();
    
    ---END---
    ---GOT---
    HTTP/1.0 200 OK
    Expires: Sun, 17 Apr 2016 15:02:26 GMT
    Cache-Control: max-age=180000
    Content-type: text/html
    Connection: close
    Date: Fri, 15 Apr 2016 13:02:45 GMT
    Server: lighttpd/1.4.38
    
    Warning: unlink(/var/log/radacct/datacounter/daily/used-octets-riccardo*): No such file or directory in /usr/local/pkg/freeradius.inc on line 628
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/freeradius.inc:628) in /etc/inc/xmlrpc_server.inc on line 431
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/freeradius.inc:628) in /etc/inc/xmlrpc_server.inc on line 431
    
     <methodresponse><params><param>
    <value><boolean>1</boolean></value></params></methodresponse> 
    ---END---
    

    I solved it by putting an @ before the unlink instruction on freeradius.inc of the slave machine.

    Hope this helps.