Problems loading the replicate module
Hello, I just recently upgraded my freeradius install from 2.1.9 to 2.1.12, with the purpose of using the replicate module. I'm adding replicate to my accounting section, and then adding Replicate-To-Realm += test1 to my acct_users. Doesn't seem like I've had a chance to misconfigure it, since when I start radiusd -X, I get: Failed to load module "replicate". There isn't much in the log to tell me what is wrong, and I've checked to make sure the module is in the libdir. Any ideas? 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.
Sorrell, Chadwick wrote:
I’m adding replicate to my accounting section, and then adding Replicate-To-Realm += test1 to my acct_users.
OK.
Doesn’t seem like I’ve had a chance to misconfigure it, since when I start radiusd –X, I get: Failed to load module “replicate”.
There are usually *other* errors before that.
Any ideas?
"Hi, stuff went wrong. Why?" No idea. Alan DeKok.
--sites-enabled/default-- preacct { preprocess replicate # # Read the 'acct_users' file files } radiusd -X output... Thu Sep 6 13:49:15 2012 : Debug: Module: Checking preacct {...} for more modules to load Thu Sep 6 13:49:15 2012 : Debug: (Loaded rlm_acct_unique, checking if it's valid) Thu Sep 6 13:49:15 2012 : Debug: Module: Linked to module rlm_acct_unique Thu Sep 6 13:49:15 2012 : Debug: Module: Instantiating module "acct_unique" from file /usr/local/etc/raddb/radiusd.conf Thu Sep 6 13:49:15 2012 : Debug: acct_unique { Thu Sep 6 13:49:15 2012 : Debug: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port" Thu Sep 6 13:49:15 2012 : Debug: } Thu Sep 6 13:49:15 2012 : Error: /usr/local/etc/raddb/sites-enabled/default[285]: Failed to load module "replicate". Thu Sep 6 13:49:15 2012 : Error: /usr/local/etc/raddb/sites-enabled/default[266]: Errors parsing preacct section. What else can I do to get more information? -----Original Message----- From: freeradius-users-bounces+chadwick.sorrell=cinbell.com@lists.freeradius.org [mailto:freeradius-users-bounces+chadwick.sorrell=cinbell.com@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Thursday, September 06, 2012 3:23 AM To: FreeRadius users mailing list Subject: Re: Problems loading the replicate module Sorrell, Chadwick wrote:
I’m adding replicate to my accounting section, and then adding Replicate-To-Realm += test1 to my acct_users.
OK.
Doesn’t seem like I’ve had a chance to misconfigure it, since when I start radiusd –X, I get: Failed to load module “replicate”.
There are usually *other* errors before that.
Any ideas?
"Hi, stuff went wrong. Why?" No idea. Alan DeKok. - 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.
On Fri, Sep 7, 2012 at 12:51 AM, Sorrell, Chadwick <chadwick.sorrell@cinbell.com> wrote:
--sites-enabled/default-- preacct { preprocess replicate
I'm pretty sure preacct is not the righth place. Did you read raddb/modules/replicate? Online copy: https://github.com/alandekok/freeradius-server/blob/v2.1.x/raddb/modules/rep... -- Fajar
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. -----Original Message----- From: freeradius-users-bounces+chadwick.sorrell=cinbell.com@lists.freeradius.org [mailto:freeradius-users-bounces+chadwick.sorrell=cinbell.com@lists.freeradius.org] On Behalf Of Fajar A. Nugraha Sent: Thursday, September 06, 2012 3:07 PM To: FreeRadius users mailing list Subject: Re: Problems loading the replicate module On Fri, Sep 7, 2012 at 12:51 AM, Sorrell, Chadwick <chadwick.sorrell@cinbell.com> wrote:
--sites-enabled/default-- preacct { preprocess replicate
I'm pretty sure preacct is not the righth place. Did you read raddb/modules/replicate? Online copy: https://github.com/alandekok/freeradius-server/blob/v2.1.x/raddb/modules/rep... -- 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.
On Fri, Sep 7, 2012 at 2:27 AM, Sorrell, Chadwick <chadwick.sorrell@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
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.com@lists.freeradius.org [mailto:freeradius-users-bounces+chadwick.sorrell=cinbell.com@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 <chadwick.sorrell@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 - 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.
participants (3)
-
Alan DeKok -
Fajar A. Nugraha -
Sorrell, Chadwick