Hey all -
I'm in a bit of a bind concerning web services and integrated
authentication. I'll give you a little background as to what I'm trying
to do ...
I have a client application that calls a web service. The web service
uses integrated windows authentication (with identity impersonation =
true in Web.Config) with anonymous authentication turned off in IIS.
Calling the web service works as expected - users that can get to it
get to it, users that don't get a 401 Access Denied. I want this web
service to also make a call to a database sitting on a remote SQL
Server using the same credentials that were passed through to the web
service (for example, Domain\UserA access web service, web service
calls Sql Server with login of Domain\UserA. UserB access web service,
web service calls SQL Server with login of Domain\UserB, etc.)
The problem arises when I try to access the SQL box; I always get the
following error:
Login failed for user '(null)'. Reason: Not associated with a trusted
SQL Server connection.
I've seen numerous posts about this online, but none really with a
definitive answer as to what I should do. If I use Basic Authentication
in IIS with everything else unchecked, the web service works (except it
always asks for a login/password, thus throwing a 401 code when the
client app tries calling it). I figure there has to be a way to get
these credentials to be passed through in a secure manner, I just
haven't found it.
Does anyone have any ideas?
Thanks!
Clint 3 8400
Did you set WebClientProtocol.Credentials in client side?
It is the double-hop' limitation of NTLM authentication. The client's
credentials can make one hop from the client machine to the
application server, the server cannot then use those credentials to
make a second network hop without some additional config work.
See: http://blogs.msdn.com/nunos/archive/.../12/88468.aspx
--
Scott http://www.OdeToCode.com/blogs/scott/
On 20 Dec 2004 12:36:04 -0800, "cm******@online.nospam"
<cj*******@gmail.com> wrote: Hey all -
I'm in a bit of a bind concerning web services and integrated authentication. I'll give you a little background as to what I'm trying to do ...
I have a client application that calls a web service. The web service uses integrated windows authentication (with identity impersonation = true in Web.Config) with anonymous authentication turned off in IIS. Calling the web service works as expected - users that can get to it get to it, users that don't get a 401 Access Denied. I want this web service to also make a call to a database sitting on a remote SQL Server using the same credentials that were passed through to the web service (for example, Domain\UserA access web service, web service calls Sql Server with login of Domain\UserA. UserB access web service, web service calls SQL Server with login of Domain\UserB, etc.)
The problem arises when I try to access the SQL box; I always get the following error:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I've seen numerous posts about this online, but none really with a definitive answer as to what I should do. If I use Basic Authentication in IIS with everything else unchecked, the web service works (except it always asks for a login/password, thus throwing a 401 code when the client app tries calling it). I figure there has to be a way to get these credentials to be passed through in a secure manner, I just haven't found it.
Does anyone have any ideas?
Thanks! Clint
Shoot - I was afraid that was the case. I had figured that there'd be a
generally easy way to do this, but I guess not.
Anyway, thanks for your reply!
Clint This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom |
last post by:
Hi,
I am currently on a project where one site needs to send the user
credentials to another site, through web services.
Scenario:
* "User 1" will authenticate to "Site A" using NTLM ("Site...
|
by: elora_c |
last post by:
I'm making a call to a webservice from my ASP.NET page. The web
application has anonymous access turned off and Integrated Windows auth
turned on. The web.config has <identity impersonate=true>. ...
|
by: James |
last post by:
I succesfully pass username , domain and password via this function (taken
from MSDN)
Private Declare Auto Function LogonUser Lib "advapi32.dll" (ByVal
lpszUsername As , _
ByVal lpszDomain As...
|
by: webserviceUser189 |
last post by:
Hi,
I'm trying to authenticate the user based on the credentials that I get
from the client app, but I'm getting empty string as user name. Can somebody
tell me if I'm doing anything wrong here....
|
by: Eagle |
last post by:
Hi all.
I want to known if it is possible to pass the Credentials (user and
pass basicly) from one user I has validated in my intranet to another
aplication (for example to an object who can...
| |
by: beachboy |
last post by:
how can pass the login (security info) to secondary application?
ASP.NET 1.1
user login to application 1(app1.myapp.com) with their username and
password, then they have a link to application 2...
|
by: =?Utf-8?B?SmltbWVy?= |
last post by:
Hello,
I've been trying to create a WCF SOAP Router Service that can forward not
just the message body but also any security headers set by the originator of
the message. The destination service...
|
by: scubak1w1 |
last post by:
Hello,
Can I pass https:// credentials in a URL string? I am not familar with this side of setting up servers, URL strings, etc...
Yep, seems counterintuitive - but it is server-server...
...
|
by: Techmighty |
last post by:
Hello All,
I want to invoke the .Net Based webservice from a java client code using axis api.
As we pass the credentials in .Net
"uin.Credentials = new NetworkCredential("administrator",...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |