From: Jennifer Richards Date: Tue, 20 Dec 2016 21:32:21 +0000 (-0500) Subject: Fix default TRPS port. Add example config files. X-Git-Tag: v2.1.1~4 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=28a83c6cb8f84b3712bfd27c8c53f29dd21acf75 Fix default TRPS port. Add example config files. --- diff --git a/include/tr_config.h b/include/tr_config.h index a554398..14c136e 100644 --- a/include/tr_config.h +++ b/include/tr_config.h @@ -49,9 +49,8 @@ #include #define TR_DEFAULT_MAX_TREE_DEPTH 12 -#define TR_DEFAULT_TR_PORT 12308 +#define TR_DEFAULT_TRPS_PORT 12308 #define TR_DEFAULT_TIDS_PORT 12309 -#define TR_DEFAULT_TRPS_PORT 12310 #define TR_DEFAULT_LOG_THRESHOLD LOG_INFO #define TR_DEFAULT_CONSOLE_THRESHOLD LOG_NOTICE #define TR_DEFAULT_APC_EXPIRATION_INTERVAL 43200 diff --git a/tr/internal.cfg b/tr/internal.cfg new file mode 100644 index 0000000..5e94c34 --- /dev/null +++ b/tr/internal.cfg @@ -0,0 +1,20 @@ +{ + "tr_internal": { + "max_tree_depth": 12, + "hostname":"beta.example.com", + "trps_port":25308, + "tids_port":25309, + "cfg_poll_interval": 1, + "cfg_settling_time": 5, + "trp_sweep_interval": 30, + "trp_update_interval": 120, + "trp_connect_interval": 10, + "tid_request_timeout": 5, + "tid_response_numerator": 2, + "tid_response_denominator": 3, + "logging": { + "log_threshold": "info", + "console_threshold":"notice" + } + } +} diff --git a/tr/organizations.cfg b/tr/organizations.cfg new file mode 100644 index 0000000..5c190b8 --- /dev/null +++ b/tr/organizations.cfg @@ -0,0 +1,84 @@ +{ + "communities": [ + { + "apcs": [], + "community_id": "apc.x", + "idp_realms": ["idp.x", "other.idp.x"], + "rp_realms": ["rp.x", "other.rp.x"], + "type": "apc", + "expiration_interval": 10 + }, + { + "apcs": ["apc."], + "community_id": "coi.x", + "idp_realms": ["idp.x"], + "rp_realms": ["rp.x"], + "type": "coi" + } + ], + "local_organizations": [ + { + "organization_name": "Demo Organization", + "realms": [ + { + "realm": "rp.x", + "gss_names": ["alpha-cred@apc.x", + "beta-cred@apc.x", + "gamma-cred@apc.x"], + "filters": { + "tid_inbound": [ + { + "action": "accept", + "domain_constraints": [ + "*.local" + ], + "specs": [ + { + "field": "rp_realm", + "match": "rp.x" + }, + { + "field": "rp_realm", + "match": "*.rp.x" + } + ], + "realm_constraints": [ + "rp.x", "*.rp.x" + ] + } + ] + } + }, + { + "realm": "other.rp.x", + "gss_names": ["something@apc.x"] + }, + { + "realm": "idp.x", + "gss_names": ["alpha-cred@apc.x"], + "identity_provider": { + "aaa_servers": ["alpha.local"], + "apcs": ["apc.x"], + "shared_config": "no" + } + }, + { + "realm": "other.idp.x", + "gss_names": ["beta-cred@apc.x"], + "identity_provider": { + "aaa_servers": ["alpha.local"], + "apcs": ["apc.x"], + "shared_config": "no" + } + } + ] + } + ], + "peer_organizations": [ + { + "hostname": "gamma.local", + "port": 12310, + "gss_names": ["gamma-cred@apc.x"] + } + ] +}