Security setting help required in web.config file.

R

Robin Patra

Hi All,

We have the following scenerio.
Machine 1: webservice is deployed in this machine.
Machine 2: UserControl is deployed in this machine.

Case 1:
Now my requirement is a person from Machine 3 types
(http://servername(machine 2)/myusercontrol.aspx.

In this sceneraio i am getting error user not authenticated.

We are using Windows authicated and Windows2003 server.

Case2:
But if i access using (http://localhost(machine2)/myusercontrol.aspx..
I gets the required result.

Can anybody plzz let me know what i am doing wrong in Case1.

This is a urgernt project requiremnet..
Any help is quite appreciated.

Thx in advance.
Robin
 
S

Scott Allen

Hi Robin:

I assume when you get user not authenticated this is on the call from
machine1 to the webservice on machine2? Are you trying to impersonate
the client on the web service call to machine 1?

There is a one hop limit on NTLM credentials, unless you enable
Kerberos delegation. The user's credentials make one hop from the
browser on machine3 to the web server on machine2. The web server
cannot use these credentials to make a second hop to machine1.

There are a couple solutions (at least):

1) Kerberos delegation
2) Running ASP.NET on the web server under a domain account or local
account synchronized with the web service machine.

I hvae an article with some more details. Even thought the article
focuses on SSRS it is applicable to other services.:

Authentication, Role-based Security, and SQL Reporting Services Web
Services
http://www.odetocode.com/Articles/216.aspx

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top