diff --git a/management/univention-management-console/src/univention/management/console/protocol/session.py b/management/univention-management-console/src/univention/management/console/protocol/session.py index bac4b73..08f6e29 100644 --- a/management/univention-management-console/src/univention/management/console/protocol/session.py +++ b/management/univention-management-console/src/univention/management/console/protocol/session.py @@ -467,7 +467,7 @@ def handle_request_get(self, msg): self._init_ldap_connection() if self.lo: try: - domaincontrollers = self.lo.search(filter="(objectClass=univentionDomainController)", attr=['cn', 'associatedDomain']) + domaincontrollers = self.lo.search(filter="(univentionService=Univention Management Console)", attr=['cn', 'associatedDomain']) except (ldap.LDAPError, udm_errors.base) as exc: CORE.warn('Could not search for domaincontrollers: %s' % (exc)) domaincontrollers = []