Can I impersonate a user on a different Active Directory domain in .NET?

后端 未结 3 2004
傲寒
傲寒 2021-01-02 17:51

I have two Active Directory domains, A and B. Users in domain A need to run an application on their desktops to view and manipulate a resource located on a server in domain

3条回答
  •  渐次进展
    2021-01-02 18:38

    If your computer (the one doing the impersonation) is a member of a domain which does not trust the domain of the user account you are trying to impersonate, then impersonation will fail. Anybody who says otherwise, I would love to see proof.

提交回复
热议问题