CoImpersonateClient - Cross Domain Problem
From: MarkLarz (Mark.Larzelere@nospamsiemens.com)
Date: 03/07/03
- Next message: Karl Levinson [x y] mvp: "Re: Cannot log onto Win2K Pro from Win NT4 server"
- Previous message: John: "password retrieve"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "MarkLarz" <Mark.Larzelere@nospamsiemens.com> Date: Fri, 7 Mar 2003 16:57:33 -0500
We have a problem that has left us baffled and could use some expertise.
The environment having the problem is complicated so I will try to minimize
it in my explanation. The problem is manifested when downstream processing
seems to suffer permission problems when a file or directory is accessed.
For this explanation, assume that the downstream processing is just trying
to read a file from a COM+ application running on a different domain than
the upstream processing. Now the upstream processing needs an explanation.
There is a bit of code on an application server running on a domain, Domain
1, that is part of a domain farm (i.e., Domain 1 is under Domain 2). This
code runs in an NT service and basically looks for work to be done. When it
finds something to do, it invokes a COM+ transaction to talk to COM+ code on
a server in a different domain, Domain 3, that is not in the same domain
farm. There is a trust relationship between Domain 3 and Domain 1 and 2.
The code on Domain 3 tries to read a file in a directory.
This processing always works if all the servers are in the same domain. It
always works in this multidomain scenario if we use the security credentials
of the NT service (under a user account instead of the system account).
However, we need to use the credentials of another user depending on the
type of work that must be done. In this scenario it always fails when the
code in Domain 1 calls:
CoImpersonateClient();
// Spawn work on the other server
. . .
hr = CoRevertToSelf();
We are sure that this code is causing the permission problems, but do not
know why. If we directly run some code that does the same work and under
this other user account, we never have a permission problem on the other
server.
I am thinking that there is a bug in Microsoft code, and will pursue this
with Microsoft, but I wanted to see if someone else experienced similar
problems and found a solution. I left out a lot of detail that could be
supplied, if you need it to help with this problem.
Thanks in advance for any help,
Mark
- Next message: Karl Levinson [x y] mvp: "Re: Cannot log onto Win2K Pro from Win NT4 server"
- Previous message: John: "password retrieve"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|