Configuration on MultiSite
-
Problem:
- Unable to configure the SAML 2.0 Single Sign On plugin onto WordPress MultiSite Sub-Sites. The configuration only worked on the “Main” (site ID = 1) site. The error messages “You have not changed your IdP’s <key> from the default value. You should update it to a real value.” is received for all sub-sites.
Explanation:
This is a big issue, and has a few other support tickets opened about it.
- Configuration is broken on multisite (I agree 100% that this is needed. It creates for a frustrating user experience, when the tab is there, but unless in the “correct” location I get an Access Forbidden message.)
- Multiple Blog Sites on same Wordpres Instance
In this ticket I want to focus solely on the MultiSite Configuration which TocydLive eludes to in the second part of his comment on the ticket above. While his solution works, it is as he states a “hack”. The developer has taken into account the need to place the IdP configuration in separate locations, but these are then not updated when the change is made in the Network Settings. The IdP configuration is stored at /wp-content/uploads/saml-20-single-sign-on/etc/config/saml20-idp-remote.ini and this works great for a single site install and for the primary blog on a MultiSite. However, all other sites have a separate uploads directory: /wp-content/uploads/sites/<blog_id>/saml-20-single-sign-on/etc/config/saml20-idp-remote.ini
The problem is that these other configuration files are not getting updated after saving the IdP settings in the Network Configuration. That requires that they be updated manually, otherwise you get the error messages that the default settings are being used and must be changed.My Fix:
Manually update/copy the IdP settings into each sub-site upload location. Was not big problem for me, as I only had 3 sub-sites. Could be more cumbersome for a large number of sub-sites. Note**: I was using a MultiSite Domain-Based installation.
Permanent Solution Suggestions:
My suggestion to the developer is to change all of these files together with the main site, or move this configuration into the plugin and only have one file that is called regardless of the sub-site. Since there is only the option to adjust these values in one location via the Network Single Sign-On Settings, this is what makes the most sense to me.
As a side note, the current configuration is great if there was the ability to set the IdP settings individually for each sub-site. This would also resolve the problem of having the IdP settings return an “Access Denied” message when in the Sub-Site settings.
- The topic ‘Configuration on MultiSite’ is closed to new replies.