Installing and Configuring Adfs For Mesdp On Demand
Installing and Configuring Adfs For Mesdp On Demand
This document contains the steps for installing and configuring AD FS 2.0 to work with ManageEngine ServiceDesk Plus On-Demand.
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Note: Screenshots contain the following: Verified primary domain name: pmp.com AD FS 2.0 installed on system: pmp-w2k8
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
'Un-Select' the checkbox 'Start the AD FS 2.0 ...' and then click 'Finish'
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Go to C:\Program Files\Active Directory Federation Services 2.0 directory and edit the file Microsoft.IdentityServer.ServiceHost.exe.config using wordpad
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Insert a line <generatePublisherEvidence enabled=false /> as seen above. Save and Exit wordpad
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
10
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
11
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Federation Service name will be shown by default based on the SSL Certificate installed on the IIS Server. Click 'Next'
12
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
13
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
14
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
15
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
16
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
17
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Edit Federation Service name and identifier so as to not contain any domain component. For e.g., we have removed pmp.com domain component and have set the Federation service name and identifiers as just pmp-w2k8
18
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Right click on 'Trust Relationships' and click on 'Add Relying Party Trust'
19
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click 'Start
20
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
21
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
22
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
23
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
24
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
1. Select Enable support for the SAML 2.0 WebSSO protocol 2. Enter the Relying party SAML 2.0 SSO service URL as : https://accounts.zoho.com/samlresponse/<your_verified_primary_do main> 3. Click Next
25
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
26
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
27
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Select Permit all users to access this Relying party and click Next
28
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
29
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Un-Select the Open the Edit Claim Rules... checkbox and click Close
30
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
31
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click the Advanced tab and change the Secure hash algorithm as SHA-1
32
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
33
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
34
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
35
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Enter the Claim rule name as windowsaccountname. Copy paste the following code and click Finish
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname"] => add(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"), query = "sAMAccountName={0};mail;{1}", param = regexreplace(c.Value, "(?<domain>[^\\]+)\\(?<user>.+)", "${user}"), param = c.Value);
36
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
37
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
38
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Enter the Claim rule name as email. Copy paste the below code and click Finish
c:[Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"] => issue( Type = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier", Value = c.Value, Properties["http://schemas.xmlsoap.org/ws/2005/05/identity/claimproperties/format"] = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress");
39
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Go to Certificates node. Right-click on the Token-signing certificate and click Show Certificate
40
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
41
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Next
42
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Select No, do not export the private key and click Next
43
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
44
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Give a file name where the certificate will be exported. Click Next. This certificated is later needed during SAML configuration.
45
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Click Finish
46
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
47
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Make sure Forms Authentication is configured as the first one in <localAuthenticationTypes> and then Save the file
48
Step by Step Guide to installing and configuring AD FS 2.0 with ManageEngine SDP On-Demand
Logout.aspx
1. Open Notepad 2. Copy and paste the following code 3. File ---> Save As ---> C:\inetpub\adfs\ls\Logout.aspx
<%@ Page Language="C#" %> <% Response.CacheControl="no-cache"; %> <% Response.AddHeader("Pragma","no-cache"); %> <% Response.Expires = -1; %> <% FormsAuthentication.SignOut(); int count = Request.Cookies.Count; for(int i = 0 ; i < count ; i++) { System.Web.HttpCookie obj = Request.Cookies[i]; obj.Expires = DateTime.Now.AddDays(-1); obj.Value = ""; obj.Path = "/adfs/ls"; Response.Cookies.Add(obj); } string serviceURL = Request["serviceurl"]; Response.Redirect(serviceURL); %>
49