View | Details | Raw Unified | Return to bug 39592
Collapse All | Expand All

(-)a/management/univention-management-console/src/univention/management/console/protocol/session.py (-1 / +1 lines)
 Lines 467-473   def handle_request_get(self, msg): Link Here 
467
			self._init_ldap_connection()
467
			self._init_ldap_connection()
468
			if self.lo:
468
			if self.lo:
469
				try:
469
				try:
470
					domaincontrollers = self.lo.search(filter="(objectClass=univentionDomainController)", attr=['cn', 'associatedDomain'])
470
					domaincontrollers = self.lo.search(filter="(univentionService=Univention Management Console)", attr=['cn', 'associatedDomain'])
471
				except (ldap.LDAPError, udm_errors.base) as exc:
471
				except (ldap.LDAPError, udm_errors.base) as exc:
472
					CORE.warn('Could not search for domaincontrollers: %s' % (exc))
472
					CORE.warn('Could not search for domaincontrollers: %s' % (exc))
473
					domaincontrollers = []
473
					domaincontrollers = []

Return to bug 39592