trustrouter: permit trust-router-COI and error handling
authorSam Hartman <hartmans@debian.org>
Fri, 6 Mar 2015 19:19:52 +0000 (14:19 -0500)
committerSam Hartman <hartmans@debian.org>
Wed, 18 Mar 2015 19:49:28 +0000 (15:49 -0400)
commit93f87d96cfac20b22092d614d28a2f8c739eb4be
tree6ffef6c8337fe75ba83fdb0e2203dce04c0f61eb
parentcaaca8da2eede537270a711742cc99f0ba854eb1
trustrouter: permit trust-router-COI and error handling

Improve the error handling of the trust router integration.  Set
Error-Cause to indicate a proxy routing failure if we fail to get a
realm via trustrouter.  Include the error back from the trust router
in Reply-Message.

Set trust-router-coi in the trust router code rather than depending on
unlang to do so.  Permit a previously specified trust-router-coi in
the request to override the community in the configuration.  Unlang is
responsible for performing any authorization checks regarding
community.
src/include/radius.h
src/modules/rlm_realm/rlm_realm.c
src/modules/rlm_realm/trustrouter.c
src/modules/rlm_realm/trustrouter.h