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

(-)a/services/univention-ad-connector/modules/univention/connector/ad/__init__.py (-2 / +4 lines)
 Lines 1290-1296   class ad(univention.connector.ucs): Link Here 
1290
		'''
1290
		'''
1291
		_d = ud.function('ldap.__get_highestCommittedUSN')
1291
		_d = ud.function('ldap.__get_highestCommittedUSN')
1292
		try:
1292
		try:
1293
			usn = self.lo_ad.getAttr('', 'highestCommittedUSN')[0]
1293
			# This will search for the `rootDSE` object. `uldap.get{Attr}()`
1294
			# are not usable, as they don't permit emtpy DNs.
1295
			result = self.lo_ad.lo.search_s('', ldap.SCOPE_BASE, '(objectClass=*)', ['highestCommittedUSN'])
1296
			usn = result[0][1]['highestCommittedUSN'][0]
1294
			return int(usn)
1297
			return int(usn)
1295
		except Exception:
1298
		except Exception:
1296
			self._debug_traceback(ud.ERROR, "search for highestCommittedUSN failed")
1299
			self._debug_traceback(ud.ERROR, "search for highestCommittedUSN failed")
1297
- 

Return to bug 45124