从Azure中运行的Web角色访问On Premises Active Directory

时间:2012-08-01 04:48:39

标签: azure active-directory azure-connect

我正在尝试从Azure上运行的Web应用程序访问onpremises活动目录。我们选择了Azure Connect,因为它最符合我们的要求(对用户进行身份验证以及从Active Directory获取用户信息)。

我已按照此link1link2中提供的步骤操作,但仍无法实现目标。

以下是方法,我试图测试是否可以从Azure访问onpremises Active Directory:DirectoryEntry.Exists("LDAP Path")

以下是我遇到的错误:

  

System.Runtime.InteropServices.COMException(0x8007054B):The   指定的域名不存在或无法联系   在System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
  在System.DirectoryServices.DirectoryEntry.Exists(String path)at   WebRole1.MyLogInPage.btnSubmit_Click(Object sender,EventArgs e)

在运行Active Directory的服务器上,我可以看到连接端点软件运行正常而没有任何连接问题,并且端点组已正确设置。

0 个答案:

没有答案