Jude Wong
2010-03-11 11:21:01 UTC
Hi,
I built an ASP.NET web service app and configured to consume a WSS v3 web
service. Specifically I wanted to use People.ResolvePrincipals to resolve
the current user in my app code.
The ASP.NET web serivce was deployed on the same box running WSS v3 but was
not configured to operate within the context of WSS v3, i.e. as a plain web
application.
In the Web.config file for the ASP.NET web service, the authentication mode
was set to Windows and identity impersonation was set to true.
From a remote PC, I opened a web browser and accessed the web service. It
could resolve my identity. I am a user in one of the WSS sites.
However when another user, who is not registered as a site user but is from
the same Windows domain, tried it, the following error occurred.
"System.Net.WebException: The request failed with HTTP status 401:
Unauthorized."
I tried setting both People.Credentials =
System.Net.CredentialCache.DefaultNetworkCredentials and People.Credentials =
System.Net.CredentialCache.DefaultCredentials but received the same result.
What we would like is for any authenticated user (from same domain or
trusted domain) to use this web service whether or not he/she is a WSS site
user.
Is there a way to grant an authenticated user to use the WSS web service?
Thanks.
I built an ASP.NET web service app and configured to consume a WSS v3 web
service. Specifically I wanted to use People.ResolvePrincipals to resolve
the current user in my app code.
The ASP.NET web serivce was deployed on the same box running WSS v3 but was
not configured to operate within the context of WSS v3, i.e. as a plain web
application.
In the Web.config file for the ASP.NET web service, the authentication mode
was set to Windows and identity impersonation was set to true.
From a remote PC, I opened a web browser and accessed the web service. It
could resolve my identity. I am a user in one of the WSS sites.
However when another user, who is not registered as a site user but is from
the same Windows domain, tried it, the following error occurred.
"System.Net.WebException: The request failed with HTTP status 401:
Unauthorized."
I tried setting both People.Credentials =
System.Net.CredentialCache.DefaultNetworkCredentials and People.Credentials =
System.Net.CredentialCache.DefaultCredentials but received the same result.
What we would like is for any authenticated user (from same domain or
trusted domain) to use this web service whether or not he/she is a WSS site
user.
Is there a way to grant an authenticated user to use the WSS web service?
Thanks.
--
Best regards,
Jude
Best regards,
Jude