找出负载平衡的域控制器LDAP尝试连接到哪个负载? [英] Find out what load balanced Domain Controller LDAP is attempting to connect to?

查看:74
本文介绍了找出负载平衡的域控制器LDAP尝试连接到哪个负载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编程一些使用C#与AD进行接口的东西,并且正在使用LDAP通过LB连接到随机DC ...,但是有时代码的LDAP连接失败.我已经测试了到每个DC的LDAP连接,并且无法复制仅当我通过LB使用LDAP时才出现的间歇性问题.有谁知道是否有一种方法可以请求LB选择使用C#将我们连接到的DC的身份-还是通过LDAP连接请求的响应?

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. 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. 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?

推荐答案

毫无疑问,如果没有连接到Loadbalancer的方法,该方法可能会提供该信息.

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.

但是,一旦通过Loadbalancer与LDAP服务器建立连接,就可以确定所连接的服务器.消除过程可能能够确定它是否是不良"域控制器.

However, once a connection is made to an LDAP server through the Loadbalancer, you can determine the server you are connected to. A process of elimination may be able to determine if it is a "bad" Domain controller.

尽管大多数LDAP服务器实现都在rootDSE中显示dsaName值,该值指示您连接的Directory Server Agent.

Although most LDAP server implementations show a dsaName value in the rootDSE which indicates the Directory Server Agent which you are connected.

Microsoft Active Directory 不支持该标准.但是, serverName 属性包含配置容器中此目录服务器的服务器对象的专有名称.

Microsoft Active Directory does NOT support this standard. However, the serverName attribute Contains the distinguished name for the server object for this directory server in the configuration container.

这篇关于找出负载平衡的域控制器LDAP尝试连接到哪个负载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆