473,401 Members | 2,139 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,401 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 1626

"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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...
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
tracyyun
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.