Univention Bugzilla – Attachment 9090 Details for
Bug 45124
search for highestCommittedUSN failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
45124-adc-usn-out-of-range-421.patch
45124-adc-usn-out-of-range-421.patch (text/plain), 1.27 KB, created by
Lukas Oyen
on 2017-08-03 18:49 CEST
(
hide
)
Description:
45124-adc-usn-out-of-range-421.patch
Filename:
MIME Type:
Creator:
Lukas Oyen
Created:
2017-08-03 18:49 CEST
Size:
1.27 KB
patch
obsolete
>From e9fcc9d5490140e73b7bc959105d5b085dc18068 Mon Sep 17 00:00:00 2001 >From: Lukas Oyen <oyen@univention.de> >Date: Thu, 3 Aug 2017 18:48:04 +0200 >Subject: [PATCH] Bug #45124: adc: fix __get_highestCommittedUSN() > >--- > .../modules/univention/connector/ad/__init__.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/services/univention-ad-connector/modules/univention/connector/ad/__init__.py b/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >index 1e36ff5..2fc3cb2 100644 >--- a/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >+++ b/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >@@ -1290,7 +1290,10 @@ class ad(univention.connector.ucs): > ''' > _d = ud.function('ldap.__get_highestCommittedUSN') > try: >- usn = self.lo_ad.getAttr('', 'highestCommittedUSN')[0] >+ # This will search for the `rootDSE` object. `uldap.get{Attr}()` >+ # are not usable, as they don't permit emtpy DNs. >+ result = self.lo_ad.lo.search_s('', ldap.SCOPE_BASE, '(objectClass=*)', ['highestCommittedUSN']) >+ usn = result[0][1]['highestCommittedUSN'][0] > return int(usn) > except Exception: > self._debug_traceback(ud.ERROR, "search for highestCommittedUSN failed") >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 45124
: 9090