简体   繁体   English

找出负载均衡的域控制器LDAP尝试连接到哪个负载?

[英]Find out what load balanced Domain Controller LDAP is attempting to connect to?

I'm programming something that interfaces with AD using C# and I'm using LDAP to connect to a random DC with my LB... but, occasionally the code's LDAP connection is unsuccessful. 我正在编写一些使用C#与AD进行接口的东西,并且正在使用LDAP通过LB连接到随机DC ...但是,有时代码的LDAP连接失败。 I've tested LDAP connections to each individual DC and can't replicate the intermittent issue that happens only when I use LDAP through the LB. 我已经测试了与每个DC的LDAP连接,并且无法复制仅当我通过LB使用LDAP时才出现的间歇性问题。 Does anyone know if there is a way to request the identity of the DC that the LB has chosen to connect us to using C# -- or by way of the response from the LDAP connection request? 有谁知道是否有一种方法可以请求LB选择使用C#将我们连接到的DC的身份-还是通过LDAP连接请求的响应?

Pretty sure there is no method without a connection to the Loadbalancer which might provide that information. 可以肯定的是,没有连接到可能提供该信息的负载均衡器的方法。

There are many different configurations which could be used within the Loadbalancer. 在负载均衡器中可以使用许多不同的配置。

However, once a connection is made to an LDAP server through the Loadbalancer, you can determine the server you are connected to. 但是,一旦通过Loadbalancer与LDAP服务器建立连接,就可以确定所连接的服务器。 A process of elimination may be able to determine if it is a "bad" Domain controller. 消除过程可能能够确定它是否是“不良”域控制器。

Although most LDAP server implementations show a dsaName value in the rootDSE which indicates the Directory Server Agent which you are connected. 尽管大多数LDAP服务器实现都在rootDSE中显示dsaName值,该值指示您已连接的Directory Server Agent。

Microsoft Active Directory does NOT support this standard. 微软Active Directory 支持这一标准。 However, the serverName attribute Contains the distinguished name for the server object for this directory server in the configuration container. 但是, serverName属性在配置容器中包含此目录服务器的服务器对象的可分辨名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM