Werk #5044: LDAP: Active Directory connection try to discover the nearest DC now

TitelLDAP: Active Directory connection try to discover the nearest DC now
Datum2017-07-26 15:23:51
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.5.0i1
LevelTrivial Change
KlasseNew Feature
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

The LDAP connection of the Check_MK GUI is now using the configured LDAP server to detect the nearest Domain Controller of the current domain. Speaking to the nearest domain controller will increase the performance of the LDAP sync.

The discovery is done like this:

  1. A connection is established with the configured server. Normally this is the DNS name of the AD domain. For this connection a "random DC" is used. In fact the given name is locally resolved using DNS and one answered IP is picked.
  2. The authentication with the default credentials is done.
  3. The AD site of the local system is detected. This is done by gathering the local IP subnets and searching the AD sites for these subnets.
  4. The first DC of the found AD site is used instead of "server".

In case the detection does not work the "server" that has been handed over to this function is used.

When you experience errors with this enable debug logging for LDAP (Global Settings > User Interface > Logging > LDAP) and check out the var/log/web.log for details.