Solved

ADFS Single Signon with ServiceNow

Posted on 2014-12-24
3
429 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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