Minor Patch to Trust Router code

Sam Hartman hartmans at mit.edu
Mon Mar 2 18:34:58 CET 2015


>From e8e45cd963842e0963e2e92759ed31b86806b413 Mon Sep 17 00:00:00 2001
From: Sam Hartman <hartmans at debian.org>
Date: Mon, 2 Mar 2015 10:34:15 -0500
Subject: [PATCH] Trustrouter integration: fix field names

Between 3.0.6 and 3.0.7 the home_server changed field names to use
log_name rather than hostname.  Update to be consistent.
---
 src/modules/rlm_realm/trustrouter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/rlm_realm/trustrouter.c b/src/modules/rlm_realm/trustrouter.c
index 04a59c2..ef630ba 100644
--- a/src/modules/rlm_realm/trustrouter.c
+++ b/src/modules/rlm_realm/trustrouter.c
@@ -195,8 +195,8 @@ static home_server_t *srvr_blk_to_home_server(TALLOC_CTX *ctx,
 	hs->type = HOME_TYPE_AUTH;
 	hs->ipaddr = home_server_ip;
 	hs->src_ipaddr.af = home_server_ip.af;
-	hs->name = talloc_asprintf(hs, "%s-for-%s", nametemp, realm_name);
-	hs->hostname = talloc_strdup(hs, nametemp);
+	hs->log_name = talloc_asprintf(hs, "%s-for-%s", nametemp, realm_name);
+	hs->name = talloc_strdup(hs, nametemp);
 	hs->port = port;
 	hs->proto = IPPROTO_TCP;
 	hs->secret = talloc_strdup(hs, "radsec");
-- 
2.1.4



More information about the Freeradius-Devel mailing list