- A working domain on your Windows Server 2012
- Set up Active Directory
- Set up users in Active Directory
-
Perform and run a full LDAP sync. This can be done by restarting SkyVault.
If a user exists in LDAP and PingFederate, but not in SkyVault, they will not be able to log in to SkyVault when SAML SSO is enabled. See Configuring LDAP (Active Directory) for more information.
-
Install AD FS.
In these example instructions, we have created a domain name of example.com and a Federation Service Name of adfs.example.com.
Test your AD FS installation by accessing these URLs:
https://adfs.example.com/adfs/ls/idpinitiatedsignon
andhttps://adfs.example.com/federationmetadata/2007-06/federationmetadata.xml
where adfs.example.com is your Federation Service Name. - Log in to AD FS as the administrator, and go to Account Settings.
-
In Idp AuthenticationRequest Service URL, enter the location of
the SingleSignOnService element of the AD FS metadata.
For example:
https://adfs.example.com/federationmetadata/2007-06/federationmetadata.xml
SkyVault supports the HTTP-POST binding only, so you need only to copy the location of the HTTP-POST services. For example:
<SingleSignOnService Location="https://adfs.example.com/adfs/ls/" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
-
In IdP SingleLogoutRequest Service URL and IdP
SingleLogoutResponse Service URL, enter the location of the
SingleLogoutService element of the AD FS metadata.
For example:
<SingleLogoutService Location="https://adfs.example.com/adfs/ls/" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
-
Export the AD FS certificate:
- Click AD FS Management (Server Manager > Tools), then Service, then Certificates.
- In the Token-signing section, right click the certificate and select View Certificate.
- On the Details tab, click Copy to file and Next.
- Select DER encoded binary X.509 (.CER), and click Next.
- Select where you want to save the file and enter a name for the file. Click Save, Next, and Finish.
-
In a browser window, log in to the Admin Console SAML SSO page as an administrator, to
upload your exported certificate to SkyVault:
http://localhost:8080/alfresco/service/enterprise/admin/admin-saml
where localhost:8080 is your SkyVault host name and port. -
Click Upload IdP Certificate to browse to and upload the AD FS
certificate you exported in step
6, and click Save.
IdP Certificate Status shows whether the certificate is valid, and IdP Certificate Status shows the expiry date of the current certificate.
SkyVault does not allow you to upload an expired certificate. If you attempt to do this, you will see an error message.
- While you are in the Admin Console, click Download SP Certificate to download the certificate required by AD FS, and Download SP Metadata as you will need these files later in this task.
-
Add a Relying Party Trust (RPT).
- Click AD FS Management (Server Manager > Tools > AD FS Management), and expand Trust Relationships.
-
Select the Relying Party Trusts folder. Right click
Relying Party Trusts and select Add Relying Party
Trust.
A configuration wizard starts to configure a new trust.
- Click Start.
- In the Select Data Source window, select Enter data about the relying party manually and click Next.
- In the Specify Display Name window, enter a display name that you'll remember, and any notes that you require. Click Next.
- In the Choose Profile window, click the AD FS profile radio button and click Next.
- In the Configure Certificate window, accept the default certificate settings by clicking Next.
-
In the Configure URL window, check Enable support
for the SAML 2.0 WebSSO protocol box and enter in the Relying
party SAML 2.0 SSO service URL.
In your SkyVault metadata, this is the Location value of the AssertionConsumerService element.
For example:- For
Share:
https://localhost:8443/share/page/saml-authnresponse
- For REST
API:
https://localhost:8443/alfresco/service/saml/-default-/rest-api/authenticate-response
- For
AOS:
https://localhost:8443/alfresco/service/saml/-default-/aos/authenticate-response
- For
Share:
-
In the Configure Identifiers window, enter a relying party
trust identifier.
This value must match the value in the Entity Identification (Issuer) field of the SkyVault Admin Console.
For example:- For Share:
https://localhost:8443/share
- For REST
API:
https://localhost:8443/SkyVault
Click Next.
- For Share:
- In the Configure Multi-factor Authentication Now? window, click the radio button I do not want to configure multi-factor authentication settings for this relying party trust at this time and click Next.
- In the Choose Issuance Authorization Rules window, click the radio button Permit all users to access this relying party and click Next.
- In the Ready to Add Trust window, leave the default settings and click Next.
-
In the Finish window, check the check box and click
Close to exit.
The Edit Claim Rules editor opens.
-
Create the claim rules.
If the Edit Claim Rules editor doesn't open after you have created the trust, right click the relying party name that you created in the previous step and select Edit Claim Rule.
- In the Issuance Transform Rules tab, click Add Rule and click Next.
- In the Choose Rule Type window, select Send LDAP Attributes as Claims and click Next.
-
In the Configure Claim Rule window:
- In Claim rule name, enter a name for the rule; for example, LDAP Attributes.
- In Attribute store, select Active Directory.
- In the Mapping of LDAP attributes to outgoing claim types table, select E-Mail Addresses in the LDAP Attribute column.
- In the Mapping of LDAP attributes to outgoing claim types
table, enter Email in the Outgoing Claim
Type column.Note: Email is the attribute name required by SkyVault.
- In the next row of the Mapping of LDAP attributes to outgoing claim types table, select User-Principal-Name in the LDAP Attribute column.
- In the next row of the Mapping of LDAP attributes to outgoing claim
types table, select Name ID in the
Outgoing Claim Type column.Note: Adding the Name ID instructs AD FS to specifically send the SessionIndex with the response. You need the SessionIndex to use SkyVault Single Logout (without this, SkyVault can log you out locally only).
- Click Finish to save the rule.
- Click OK to complete.
-
Adjust the Relying Party Trust settings.
- Click AD FS Management (Server Manager > Tools > AD FS Management), and expand Trust Relationships.
- Right click the Relying Party Trust that you created in step 10, and select Properties.
- Click the Advanced tab, and select SHA-1 in Secure hash algorithm. Click OK.
-
Click the Endpoints tab, and click Add
SAML to add a new endpoint.
- In Endpoint type, select SAML Logout.
- In Binding, select POST.
- In Trusted URL, enter the SkyVault logout request URL. This
is the Location value in the SkyVault metadata
SingleLogoutService element.For example:
- For
Share:
<md:SingleLogoutService ... Location="https://localhost:8443/share/page/saml-logoutrequest"/>
- For REST
API:
<md:SingleLogoutService ... Location="https://localhost:8443/alfresco/service/saml/-default-/rest-api/logout-request"/>
- For
AOS:
<md:SingleLogoutService ... Location="https://localhost:8443/alfresco/service/saml/-default-/aos/logout-request"/>
- For
Share:
- In Response URL, enter the SkyVault logout response URL.
This is the ResponseLocation value in the SkyVault metadata
SingleLogoutService element.For example:
- For
Share:
<md:SingleLogoutService ... ResponseLocation="https://localhost:8443/share/page/saml-logoutresponse"/>
- For REST
API:
<md:SingleLogoutService ... ResponseLocation="https://localhost:8443/alfresco/service/saml/-default-/rest-api/logout-response"/>
- For
AOS:
<md:SingleLogoutService ... ResponseLocation="https://localhost:8443/alfresco/service/saml/-default-/aos/logout-response"/>
- For
Share:
- Click OK.
-
Click the Signature tab, and Add to
upload the SkyVault certificate that you downloaded in step 9.
Note: You might see a warning about the length of a certificate key. You can ignore this message (click Yes).
- Click OK to save your changes.
-
Test your setup.
- Create a user in the Windows Server Active Directory.
-
Add an email address for the created user.
Right click on the user, select Properties, and add the email address that matches your SkyVault instance and Windows server domain.
For example, if you have created a user in SkyVault with the username user1, AD FS assigns an email address of user1@example.com, where example.com is the AD FS domain.
- Go to https://adfs.example.com/adfs/ls/idpinitiatedsignon where adfs.example.com is your Federated Service Name.
-
Select the RPT name that you created in step 10, and sign in.
You should see confirmation that you are signed in to AD FS. See Authenticating users with SAML SSO for Share for more information about testing your SAML SSO settings.
-
For troubleshooting AD FS, see the AD FS logs in Event
Viewer.
- From the Start screen, enter Event Viewer.
- Expand Applications and Services Logs and AD FS, and click Admin.
- In the Filter Current Log dialog box, for Event level, verify that that the following check boxes are selected: Warning, Information, and Error.