473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

COM+ and NetworkCredential problem

Hi,

I have a COM+ out of proc service that is configured to impersonate the user
making the call to the COM+ service. Is there a way to create a
NetworkCredential object based on the current thread's security? Using
System.Net.CredentialCache.DefaultCredentials always returns the credentials
of the user configured to run the out of proc COM+ server and not the
credentials of the user set on the current thread.

Regards
Surya

Aug 30 '05 #1
1 1625

"surya" <su************************@honeywell.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I have a COM+ out of proc service that is configured to impersonate the
user
making the call to the COM+ service. Is there a way to create a
NetworkCredential object based on the current thread's security? Using
System.Net.CredentialCache.DefaultCredentials always returns the
credentials
of the user configured to run the out of proc COM+ server and not the
credentials of the user set on the current thread.

Regards
Surya


Impersonate != delegate. So you need to select delegate a impersonation
level, but:
- the client has to specify during the initial authentication (using
Kerberos) that it allows it's identity to be delegated (this is the default
for AD accounts) , and
- you need to run in a Kerberos realm,
- and the server needs to be trusted for delegation i the AD (not set by
default).

Willy.
PS. please, don't cross-post to half of microsoft NG's, you question relates
to .NET Microsoft.public.dotnet.framework.component_servic es and possibly to
Microsoft.public.platformsd.component_svcs only.
Aug 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Prathiraj | last post by:
Hi All, I'm trying to access a web page from C# code. Since I'm behind a firewall/proxy, I creat a webproxy and NetworkCredential to access the web page. It works fine. In this way, I have to...
4
by: Prehaut Anselme | last post by:
Hi, I need to create a WebRequest with an automatic proxy I have the specification of this porxy (host & port) I ask the user their own login and password, but the proxy tells me that the...
0
by: Ivan G. | last post by:
Hi. I'm trying to call web service passing a new System.Net.NetworkCredential to it's reference: jobs.Jobs j = new jobs.Jobs(); j.Credentials = new...
3
by: Peter Lapic | last post by:
I am running an VB.Net app which calls an ASP.Net Web Service and this service accesses SQL Server. The Web Service & SQL Server run on separate Windows 2000 server on the same domain. As we...
0
by: Andrew Corley, MCSD, MCDBA | last post by:
Good day, I have researched on MSDN and the newsgroups and I have not yet found an answer. Hopefully, one of you will have solved this type of issue already. I am writing a VB.NET 2003 console...
3
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
1
by: surya | last post by:
Hi, I have a COM+ out of proc service that is configured to impersonate the user making the call to the COM+ service. Is there a way to create a NetworkCredential object based on the current...
0
by: BrianDH | last post by:
Hi We are using NetworkCredential with Active Dir to validate the user. The problem we are having is, when the user is required to change his password at logon (every 90 days) the...
3
by: antonyliu2002 | last post by:
I have a website (call it WinAuthWeb) that uses Integrated Windows Authentication. In my ASP.NET web application, I collect user name, password and domain info and pass them to WinAuthWeb for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.