web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Authentication/SPN issue?

(0) ShareShare
ReportReport
Posted on by 3,079

We had an error back during installation about not being able to properly set SPNs (see http://community.spiceworks.com/topic/734916-ms-dynamics-crm-2015-install-issue-mscrmsandboxservice) and this has now come back to bite us a couple of times.  First was the reporting issue seen in that thread, and now it's with the Service Endpoints.

Basically, the site and the reporting was working fine.  However, if we tried to go to any of the Service Endpoint links we got the message "The service '/XRMServices/2011/Discovery.svc' cannot be activated due to an exception during compilation.  The exception message is: The authentication schemes configured on the host ('Ntlm, Anonymous') do not allow those configured on the binding 'BasicHttpBinding' ('Negotiate')."

I was able to get these links to work by adding Negotiate as a Windows Auth provider for the site.  However, now the entire site does not work in Chrome.  And reading threads on the Chrome error message, everyone is saying "remove Negotiate and just use NTLM".  Which is of course the setup we had when the endpoints didn't work.  :-(

I figure either 1. I need to find the binding it's talking about and set it to NTLM, instead of the reverse (setting the site to Negotiate), or 2. there's still something messed up in the SPNs.

Has anyone experienced this?  Could someone with a fully functional site+custom reporting+endpoints post what their SPNs look like, perhaps, and I could see if I'm missing anything else?

Thanks!

ETA:  I removed Negotiate from the site again, and from the XRM Deployment app again, and now magically it works.  Despite having done those same things yesterday.  :-(   So it's seemingly okay for now, but would still like some input onto whether there's a better/more secure way to do things, or if this is fine.

*This post is locked for comments

I have the same question (0)
  • awalters Profile Picture
    3,079 on at

    Here's what setspn -l <service account> looks like:

           HTTP/<server name>.<domain name>

           HTTP/<server name>

           MSCRMAsyncService/<server name>.<domain name>

           MSCRMAsyncService/<server name>

           MSCRMSandboxService/<server name>.<domain name>

           MSCRMSandboxService/<server name>

    And setspn -l <server name>:

    TERMSRV/<server name>
    TERMSRV/<server name>.<domain name>
    WSMAN/<server name>
    WSMAN/<server name>.<domain name>
    RestrictedKrbHost/<server name>
    HOST/<server name>
    RestrictedKrbHost/<server name>.<domain name>
    HOST/<server name>.<domain name>

  • awalters Profile Picture
    3,079 on at

    So whatever magic happened before failed, as this is no longer working.  Both the site and XRMServices are set to NTLM, not Negotiate.  Where else can I look for this mystical Negotiate provider?  I cannot find it at all...

  • Verified answer
    awalters Profile Picture
    3,079 on at

    So, an update - I put Negotiate back in for the site and for the app.  This makes everything work in IE but the site fails with "ERR_INVALID_AUTH_CREDENTIALS" in Chrome when accessed from the domain.

    I found this page:  communities.ca.com/.../241729605  , which suggests putting in a reg entry to force Chrome not to use Negotiate.  This so far seems to work.  Reserving final judgement until I've done more tests, though.

  • Community Member Profile Picture
    on at

    hi Allison,  What is the final outcome? Please share with the community.

    best regards,

    harihar

  • Verified answer
    awalters Profile Picture
    3,079 on at

    No further development - the reg entry worked, though I don't like it.  Supposedly there's a fix coming in Chrome, though...

  • Community Member Profile Picture
    on at

    Thanks Allison for the update.

    best wishes,

    harihar

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans