SAML Single Sign on with Active Directory - ADFS
Xibo can be setup to authenticate against any SAML 2.0 IdP. Microsoft Active Directory Federation Services can be configured to act as such an IdP
Firstly, install the ADFS role on your server.
You will need a valid SSL certificate for the URL you intend to publish your IdP on. In this example, I’m publishing an IdP at https://fs.test.alexharrington.co.uk. This IdP won’t exist by the time this article is published. Similarly, your Xibo CMS will need to be hosted on a server protected by a valid SSL certificate.
Once the IdP is installed, ensure you can access the IdP webpage at the URL you have configured from both your Xibo CMS Server, and from the Client computers that your users will use to authenticate against.
First we need to export the signing certificate from ADFS.
Open the ADFS console, go to
Service > Certificatesand find theToken-signingcertificate.

Right click on it, and choose
View Certificate.Move to the
Detailstab, and clickCopy to File...:

Choose
Base-64 encoded X.509format, and save the file somewhere convenient:

Now on your Xibo CMS, edit your
settings.phporsettings-custom.phpfile, and add in the example SAML configuration below:
Be sure to replace:
<yourIdP>with the URL of your ADFS server<yourCMS>with the URL of your Xibo CMS<yourCert>with the text contents of the certificate you exported from ADFS, all on one line, excluding the-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines
Please note: homePage => icondashboard.view needs to be replaced if you are using a CMS earlier than v3.x:
Earlier than v3.x - replace icondashboard.view with icondashboard
Earlier than v2.0.3 - replace icondashboard.view with dashboard
Save the file, and now your CMS will redirect to your SAML IdP when you go to login.
Back in the ADFS console, go to
Trust Relationships -> Relaying Party TrustsSelect
Add Relaying Party Trustto start the Wizard.At the
Select Data Sourcestep, enter the SAML metadata URL for your CMS - so for examplehttps://<yourCMS/saml/metadata

There are various advanced options presented, most of which are out of the scope of this guide. Please select the options you require. In my case, I choose I do not want to configure multi-factor authentication settings for this relaying party trust at this time and Permit all users to access this relaying party when prompted.
Finally a summary is presented:

Leave the box ticked to Edit Claim Rules and finish the wizard.
We need to add three claim rules.
Click
Add Rule, and chooseSend Claims Using a Custom Rule:

Name the rule
Create Persistent Identifier 1, and enter the following custom rule:
Add a second rule, and choose the type
Transform an Incoming Claim. Call this ruleCreate Persistent Identifier 2, and configure as follows:

Finally add a third rule, of type
Send LDAP Attributes as Claims. Name itUser Info, and set it up as follows:

You should now be able to log in to your Xibo CMS as any user inside Active Directory.
Please ensure all users have a valid email address set on their Active Directory User account. Users will be created in Xibo using the Active Directory SAM-Account-Name as the username, and E-Mail address from the E-Mail Addresses field.
Last updated
Was this helpful?

