#include <trp_internal.h>
#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
--- /dev/null
+{
+ "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"
+ }
+ }
+}
--- /dev/null
+{
+ "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"]
+ }
+ ]
+}