ASP.NET: windows authentication against production server
This is a real quick question, is it possible to allow Windows Authentication for an ASP.Net intranet site (on a test server) to authenticate a开发者_运维技巧gainst the production server user accounts? If so, how would I go about doing so.
If they are part of the same domain this is built in. If they are on separate domains, this would require a trust between the domains, and then this would be "built in" simply by prepending the domain name in front of the production user name. If they are on stand-alone machines, this gets very complicated with establishing trusts between the machines and allowing users from the "workgroup" enter. If your servers are managed by a server admin team (like most major companies), it's probable that there will be no trusts established between machines in a production domain and machines in a test domain. Many corporate security policies prohibit this interaction.
You would have to add something like this to web.config
<system.web>
...
<authentication mode="Windows"/>
...
</system.web>
and login as SYSTEM-NAME\username and password.
精彩评论