• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Web Service with NT Authentication

New Here ,
Oct 05, 2010 Oct 05, 2010

Copy link to clipboard

Copied

I have a simple call to a webserivce (Sharepoint to be exact), but the web service requires NT Authentication and even though I'm passing in the username and password (with username being of the format DOMAIN\USER)  I keep getting the error:

401 Unauthorized.

I have searched up and down the web and everyone is saying that ColdFusion8 & 9 does not support web service calls with NT Authentication.  I have tried all kinds of tricks like changing server settings and trying to manually pass headers to the service call ... everything.

I was wondering if someone could tell me how to accomplish this, or if an Adobe member could give me a definitive answer that it will NOT work so that we could go forward possibly coming up with another solution be it ASP.NET, C#, etc.

TOPICS
Advanced techniques

Views

863

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 05, 2010 Oct 05, 2010

Copy link to clipboard

Copied

LATEST

Yes, ColdFusion can not participate in a NTLM authentication exchange with any feature that uses an internal to CF browser, such as <cfhttp...>, CF scheduled tasks, etc.

I suspect that at least one problem is that NTLM isn't a single exchange with the web server.  If you ever take a look into the IS logs for any resource that is protected with NTLM authentication, you will see that the web server and browser exchanged no less then THREE requests and responses for each and every piece of content returned; the first will result in a 401.1 response, the second a 401.2 response, and finally the 200 or whatever the final response would be.

ColdFusion, not being a Microsoft product, does not participate in all of this.  And I have never heard of anybody who has manually worked it out with all the requests and responses and encryption that would be involved.

But if you do go with an .NET, C# or possibly Java solution, it should be fairly do able to create some piece of authentication code in one of those languages and then use that within your larger ColdFusion application through its many extension capabilities to tie into any of those three languages to some degree or the other.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation