[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 991
  • Last Modified:

How to call to sharepoint web services from ASP.NET, using on both IIS Windows authentication?

How to call to Sharepoint (MOSS 2007) web services from ASP.NET (I am calling from myWebService to sp web service). Both ASP.NET and Sharepoint are configured to work with windows authentication.

If I try from asp.net:
userGroup - is the web reference
userGroup.Credentials = System.Net.CredentialCache.DefaultCredentials;
Get 401 error

I have configured in web.config of my asp.net application  impersonate=true.

If pass username, password
userGroup.Credentials = new System.Net.NetworkCredential(name, pass, domain);
           
 - works OK, but I don't have user password ...

Should I use Kerberos authentication on my IIS and enable accoutns for delegation - or not nesesary?
0
netformx
Asked:
netformx
1 Solution
 
Ted BouskillSenior Software DeveloperCommented:
Windows authentication does NOT support pass-through (relaying) authentication which is different than impersonation.

Keberos will allow this but it is challenging to setup and manage.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now