Validate SP path settings during installation
authorNathan Kinder <nkinder@redhat.com>
Wed, 11 Mar 2015 03:02:07 +0000 (20:02 -0700)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 11 Mar 2015 13:48:55 +0000 (14:48 +0100)
commita1bcbfd426a6c3860edf53e12da32ff6daad4442
tree23ec7aaa0a6c168792cb78d8ca8d1767b203f5e8
parentf06950e46262e4899f42ba3b197525bb2b88b9cb
Validate SP path settings during installation

There are a number of URL path options that can be specified as
options when running ipsilon-client-install. There are certain
rules that must be followed to result in a valid mod_auth_mellon
configuration:

 - All path options must be prefixed with '/'.

 - The mellon endpoint path (--saml-sp) must be a subpath of the
   httpd 'Location' element is it contained within (--saml-base).

 - The logout (--saml-sp-logout) and post (--saml-sp-post) paths
   must be subpaths of the mellon endpoint (--saml-sp).

This adds validation for all of the above rules.

https://fedorahosted.org/ipsilon/ticket/82

Signed-off-by: Nathan Kinder <nkinder@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/install/ipsilon-client-install