views:

833

answers:

1

Hi

We have developed a webservice that sits and runs in the context of a sharepoint site. This works fine using normal windows authentication.

We now have a client who wants to install this on a Kerberos enabled sharepoint site. What changes would we need to make to either the webserivce, the calling client (a windows service) or both to enable this...?

Thanks

Matt

+4  A: 

Is this in an intranet?

If so, and your client is already passing windows credentials to the web service, you shouldn't have to do any additional work.

If you aren't passing windows credentials, here is how to do it :

WebServiceProxy proxy = new WebServiceProxy(); // Derived from SoapHttpClientProtocol

proxy.Credentials = CredentialCache.DefaultCredentials;

This method works for both NTLM and Kerberos authentication. It will pass the credentials of the windows account under which the code is running.

Paul Lalonde