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

Component Setup
Title LDAP: Active Directory connection try to discover the nearest DC now
Date Jul 26, 2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.5.0i1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

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.

To the list of all Werks