Trustrouter integration: fix field names
authorSam Hartman <hartmans@debian.org>
Mon, 2 Mar 2015 15:34:15 +0000 (10:34 -0500)
committerSam Hartman <hartmans@debian.org>
Mon, 2 Mar 2015 15:34:15 +0000 (10:34 -0500)
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

index 04a59c2..ef630ba 100644 (file)
@@ -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");