I am trying to impersonate a user on a different domain (which I have been added through VPN) And I'm getting the following error: Could not create a Windows user token from the specified credentials in the config file. Error on Operating System 'Security database on the server does not have a computer account for this workstation trust relationship.
Does anyone know how to impersonate a user from a different domain?
I am using the cloning tag:
& lt; Authentication mode = "windows" /> & Lt; Identity impersonation = "true" user name = "myUsername" password = "myPassword" />
And the code where it will break and give me the error is as follows:
file. OpenRide (pathToMyFile);
This code works if I'm on another domain. So I'm pretty sure that I need to build a token and a trust relationship but I do not know how to do it.
Thank you.
No comments:
Post a Comment