Must be my FreeBSD install, I just spun up a Ubuntu install and used the same 
config and it works like a charm.  Weird.

-----Original Message-----
From: 
freeradius-users-bounces+chadwick.sorrell=cinbell....@lists.freeradius.org 
[mailto:freeradius-users-bounces+chadwick.sorrell=cinbell....@lists.freeradius.org]
 On Behalf Of Fajar A. Nugraha
Sent: Thursday, September 06, 2012 5:22 PM
To: FreeRadius users mailing list
Subject: Re: Problems loading the replicate module

On Fri, Sep 7, 2012 at 2:27 AM, Sorrell, Chadwick 
<[email protected]> wrote:
> I have read the documentation on it, and you are right preacct isn't listed 
> there.  I've tried it in authorize and accounting before preacct and it's all 
> the same error.
>
> Thu Sep  6 15:27:46 2012 : Error: 
> /usr/local/etc/raddb/sites-enabled/default[344]: Failed to load module 
> "replicate".
> Thu Sep  6 15:27:46 2012 : Error: 
> /usr/local/etc/raddb/sites-enabled/default[293]: Errors parsing accounting 
> section.

(shrug)

Works for me. double check whether you've compiled it correctly, and whether 
the libs are all in correct place. Or, if you use Ubuntu/debian, just use my 
ppa.

my example setup, on proxy.conf:
home_server remote_server {
        ipaddr = 206.253.165.21
        port = 1812
        type = auth+acct
        secret = testing123
}
home_server_pool remote_pool {
        type = fail-over
        home_server = remote_server
}
realm remote {
      auth_pool = remote_pool
      acct_pool = remote_pool
}


on sites-available/default:
accounting {
        update control {
                Replicate-To-Realm := "remote"
        }
        replicate
...
}


test command (not an actual acct packet, I know, but enough for test):
# echo Message-Authenticator=0x00|radclient 127.0.0.1 acct testing123 Received 
response ID 21, code 5, length = 20


part of debug log:
rad_recv: Accounting-Request packet from host 127.0.0.1 port 41546, id=21, 
length=38
        Message-Authenticator = 0xaf8c12fac55253aa25472e940691c2f6
# Executing section preacct from file /etc/freeradius/sites-enabled/default
+- entering group preacct {...}
++[preprocess] returns ok
[acct_unique] WARNING: Attribute NAS-Port was not found in request, unique ID 
MAY be inconsistent [acct_unique] WARNING: Attribute Acct-Session-Id was not 
found in request, unique ID MAY be inconsistent [acct_unique] WARNING: 
Attribute User-Name was not found in request, unique ID MAY be inconsistent 
[acct_unique] Hashing ',Client-IP-Address = 127.0.0.1,NAS-IP-Address = 
127.0.0.1,,'
[acct_unique] Acct-Unique-Session-ID = "60762dd8d4469af9".
++[acct_unique] returns ok
[suffix] Proxy reply, or no User-Name.  Ignoring.
++[suffix] returns ok
++[files] returns noop
# Executing section accounting from file /etc/freeradius/sites-enabled/default
+- entering group accounting {...}
++[control] returns noop
[replicate] Replicating packet to Realm remote Sending Accounting-Request of id 
230 to 206.253.165.21 port 1813
        Message-Authenticator = 0x00000000000000000000000000000000
        NAS-IP-Address = 127.0.0.1
++[replicate] returns ok


--
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.  If you receive this in error, please contact 
the sender and destroy any copies of this document.
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you receive this in error, please contact 
the sender and destroy any copies of this document.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to