Solved

ADFS Single Signon with ServiceNow

Posted on 2014-12-24
3
397 Views
Last Modified: 2015-01-07
We're trying to configure our new ServiceNow support tool for single sign on with our Active Directory. We have an Active Directory Federation Server, and have setup an ADFS Relying Party as per the instructions here: http://wiki.servicenow.com/?title=Configuring_ADFS_2.0_to_Communicate_with_SAML_2.0. The setup appears to be OK, when we visit the ADFS signin page (https://adfs.ourdomain.com/adfs/ls/idpinitiatedsignon.aspx) we get a sign in page with ServiceNow as a site option available to login to. However, when we login, an error appears briefly saying "Could not validate SAMLResponse", then the page appears to forward to https://ourdomain.service-now.com/logout_redirect.do?sysparm_url=logout_success.do, and constantly ping back and forth between that page and the sign in page. When we enable debugging on the service now portal, the below error is shown in the logs:
SAML2ValidationError: AudienceRestriction validation failed. No matching audience found.
I think this is something to do with the certificate, but not 100% sure. I followed the certificate export instructions on the aforementioned wiki, exporting the Token-Signing cert, and then imported that into the ServiceNow instance as per the instructions here: http://wiki.servicenow.com/index.php?title=SAML_2.0_Web_Browser_SSO_Profile#Step_5._Install_the_IdP_Certificate.

Any help, advice, or suggestions would be most welcome!
0
Comment
Question by:bjblackmore
  • 2
3 Comments
 
LVL 17

Assisted Solution

by:Learnctx
Learnctx earned 400 total points
ID: 40517439
It sounds like a certificate issue from the sound of it. Do you have the certificate in the correct format (PEM)? Have you converted the certificate from DER format to PEM format? If you have not try doing that using https://www.sslshopper.com/ssl-converter.html. Make sure there is no white space or carriage returns on the end of the certificate text.
0
 

Accepted Solution

by:
bjblackmore earned 0 total points
ID: 40527792
Thanks for the reply. Sorry for the delayed responce, Christmas holidays!

After posting my initial question I went back and re-read the instructions, and I had indeed missed the PEM convertion. However even after converting and uploading the cert in PEM format I still got the same error. After getting Service Now support to check the settings, it turns out that there is a property on the SNOW side that was mis-configured. The Audience URL needs to be the SNOW URL, but was incorrectly set. After updating this to the correct URL, login now works successfully!
Audience URL
0
 

Author Closing Comment

by:bjblackmore
ID: 40535212
Certificate not being in PEM format was probably part of the issue, but also the audience URL was incorrect.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As network administrators; we know how hard it is to track user’s login/logout using security event log (BTW it is harder now in windows 2008 because user name is always “N/A” in the grid), and most of us either get 3rd party tools, or just make our…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now