My workstation is inside my company network domain. I have a virtual pc on my workstation that is not on the domain and 开发者_如何学Pythonmy asp.net web application is windows authenticated which resides on the virtual.
can't i use impersonation and use my network credentials to access the domain thru the application?
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>
You could put your domain creds in code:
Using programmatic Impersonation from an ASP.NET Page
no - impersonation is all about allowing your asp.net web app to run as a different user, but one that is still inside the domain / forest
you might be able to get it to work via NTLM. Create a user on the virtual machine with the same user name and password as your domain account
精彩评论