Hi Adam,
You need to configure the Trust Router with it's own hostname, which is used to construct it's GSS Service Name. This is done in the "internal" configuration section. In our example configuration files, the internal configuration section is found in manual.cfg and looks like this:
{"tr_internal":{"max_tree_depth": 4,
"hostname":"moonshot-proxy.local"}}
The max_tree_depth is not used for anything yet, and it will have a useful default when it is, so you can omit that object if you like.
Margaret
On May 12, 2014, at 10:42 AM, Adam Bishop <[log in to unmask]> wrote:
> The error given by the trust router is:
>
> tr_cfg_parse_internal: Parsing error, hostname is not found.
> Error decoding configuration information, exiting.
>
> The trusts.cfg I’m using follows at the end - it seems that the error is caused by one of the elements in the trust router config missing a hostname value - should the portal be generating a hostname attribute for something, or is the trust router looking for the wrong attribute?
>
> Regards,
>
> Adam Bishop
> Systems Development Specialist
>
> gpg: 0x6609D460
> t: +44 (0)1235 822 245
> xmpp: [log in to unmask]
>
> Janet, the UK's research and education network.
>
> {
> "communities": [
> {
> "apcs": [
>
> ],
> "community_id": "apc.moonshot.ja.net",
> "idp_realms": [
> "amelie.dev.ja.net",
> "apc.moonshot.ja.net"
> ],
> "rp_realms": [
> "amelie-idp.dev.ja.net",
> "amelie-rp-proxy.dev.ja.net",
> "apc.moonshot.ja.net",
> "amelie.dev.ja.net"
> ],
> "type": "apc"
> }
> ],
> "idp_realms": [
> {
> "aaa_servers": [
> "amelie-idp.dev.ja.net"
> ],
> "apcs": [
> "apc.moonshot.ja.net"
> ],
> "realm_id": "amelie.dev.ja.net",
> "shared_config": "no"
> },
> {
> "aaa_servers": [
> "apc.moonshot.ja.net"
> ],
> "apcs": [
> "apc.moonshot.ja.net"
> ],
> "realm_id": "apc.moonshot.ja.net",
> "shared_config": "no"
> }
> ],
> "rp_clients": [
> {
> "filter": {
> "filter_lines": [
> {
> "action": "accept",
> "domain_constraints": [
>
> ],
> "filter_specs": [
> {
> "field": "rp_realm",
> "match": "amelie-rp-proxy.dev.ja.net"
> },
> {
> "field": "rp_realm",
> "match": "*.amelie-rp-proxy.dev.ja.net"
> }
> ],
> "realm_constraints": [
> "amelie-rp-proxy.dev.ja.net",
> "*.amelie-rp-proxy.dev.ja.net"
> ]
> },
> {
> "action": "accept",
> "domain_constraints": [
>
> ],
> "filter_specs": [
> {
> "field": "rp_realm",
> "match": "amelie-idp.dev.ja.net"
> },
> {
> "field": "rp_realm",
> "match": "*.amelie-idp.dev.ja.net"
> }
> ],
> "realm_constraints": [
> "amelie-idp.dev.ja.net",
> "*.amelie-idp.dev.ja.net"
> ]
> }
> ],
> "type": "rp_permitted"
> },
> "gss_names": [
> "<snip>"
> ]
> },
> {
> "filter": {
> "filter_lines": [
> {
> "action": "accept",
> "domain_constraints": [
>
> ],
> "filter_specs": [
> {
> "field": "rp_realm",
> "match": "apc.moonshot.ja.net"
> },
> {
> "field": "rp_realm",
> "match": "*.apc.moonshot.ja.net"
> }
> ],
> "realm_constraints": [
> "apc.moonshot.ja.net",
> "*.apc.moonshot.ja.net"
> ]
> }
> ],
> "type": "rp_permitted"
> },
> "gss_names": [
> "[log in to unmask]"
> ]
> }
> ]
> }
> Janet(UK) is a trading name of Jisc Collections and Janet Limited, a
> not-for-profit company which is registered in England under No. 2881024
> and whose Registered Office is at Lumen House, Library Avenue,
> Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
|