I want to authenticate in my web site from windows username and without a login form but our active directory of our users is in another server?How can I do it? How can I create a connection between these two servers? I work with C# and ASP.net Please answer me as soon as possible I have a short deadline to do it! with the Best regards
我想在我的网站上从Windows用户名进行身份验证,没有登录表单,但我们用户的活动目录在另一台服务器上?我该怎么做?如何在这两个服务器之间创建连接?我和C#以及ASP.net一起工作请尽快回答我,我有一个很短的截止日期!最诚挚的问候
1 个解决方案
#1
0
The first thing is, that your web-server must be in the same domain as the active-directory server. Than you have to add <authentication mode="Windows"/>
in your webconfig, so that the IIS know, you want to use window authentication. You have to place this tag in the <system.web>
-Tag.
首先,您的Web服务器必须与活动目录服务器位于同一个域中。您必须在webconfig中添加
The last thing you have to do is described here: How to automatically authenticate windows integrate without login popup?
你要做的最后一件事就是这里描述的:如何在没有登录弹出窗口的情况下自动验证Windows集成?
Here is a complete article from the MSDN: How To: Use Windows Authentication in ASP.NET 2.0
以下是MSDN中的完整文章:如何:在ASP.NET 2.0中使用Windows身份验证
#1
0
The first thing is, that your web-server must be in the same domain as the active-directory server. Than you have to add <authentication mode="Windows"/>
in your webconfig, so that the IIS know, you want to use window authentication. You have to place this tag in the <system.web>
-Tag.
首先,您的Web服务器必须与活动目录服务器位于同一个域中。您必须在webconfig中添加
The last thing you have to do is described here: How to automatically authenticate windows integrate without login popup?
你要做的最后一件事就是这里描述的:如何在没有登录弹出窗口的情况下自动验证Windows集成?
Here is a complete article from the MSDN: How To: Use Windows Authentication in ASP.NET 2.0
以下是MSDN中的完整文章:如何:在ASP.NET 2.0中使用Windows身份验证