Problems loading the replicate module
Fajar A. Nugraha
list at fajar.net
Thu Sep 6 23:22:14 CEST 2012
On Fri, Sep 7, 2012 at 2:27 AM, Sorrell, Chadwick
<chadwick.sorrell at cinbell.com> 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
More information about the Freeradius-Users
mailing list