Jump to content

ConnectServer using impersonation token


Recommended Posts

Guest rawprogrammer
Posted

Hi.

 

I'm trying to connect to a remote computer in C++, using

`IWbemLocator::ConnectServer` method. The hosting process has no

permissions to connect, but the current thread is impersonated to a

powerful user. The call fails (error code is 0x80070005). In the

Security Event Log of the remote machine I can find the authentication

request, and the username is the process' user (not the impersonatd

user).

 

I've tried to create a new process (Using CreateProcessAsUser), and

then all works. It's not good enough because I must do it in the

current process.

 

It looks like the problem is in the underlying DCOM layer.

 

Can someone help?

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...