Hello community,
here is the log from the commit of package yast2-adcommon-python for
openSUSE:Leap:15.2 checked in at 2020-05-13 03:54:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-adcommon-python (Old)
and /work/SRC/openSUSE:Leap:15.2/.yast2-adcommon-python.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-adcommon-python"
Wed May 13 03:54:09 2020 rev:5 rq:803716 version:1.4
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/yast2-adcommon-python/yast2-adcommon-python.changes
2020-01-15 16:32:05.116877217 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.yast2-adcommon-python.new.2738/yast2-adcommon-python.changes
2020-05-13 03:54:14.968503484 +0200
@@ -1,0 +2,7 @@
+Tue May 12 15:27:03 UTC 2020 - [email protected]
+
+- Fix slow load of ADUC caused by chatty ldap traffic;
+ (bsc#1170998);
+- 1.4
+
+-------------------------------------------------------------------
Old:
----
yast2-adcommon-python-1.3.tar.bz2
New:
----
yast2-adcommon-python-1.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-adcommon-python.spec ++++++
--- /var/tmp/diff_new_pack.Yv6vHg/_old 2020-05-13 03:54:15.344504273 +0200
+++ /var/tmp/diff_new_pack.Yv6vHg/_new 2020-05-13 03:54:15.344504273 +0200
@@ -1,7 +1,7 @@
#
# spec file for package yast2-adcommon-python
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: yast2-adcommon-python
-Version: 1.3
+Version: 1.4
Release: 0
Summary: Common code for the yast python ad modules
License: GPL-3.0-or-later
++++++ yast2-adcommon-python-1.3.tar.bz2 -> yast2-adcommon-python-1.4.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-adcommon-python-1.3/adcommon/yldap.py
new/yast2-adcommon-python-1.4/adcommon/yldap.py
--- old/yast2-adcommon-python-1.3/adcommon/yldap.py 2019-10-15
22:40:47.000000000 +0200
+++ new/yast2-adcommon-python-1.4/adcommon/yldap.py 2020-05-12
17:38:23.000000000 +0200
@@ -221,6 +221,11 @@
search = '(|(possSuperiors=%s)(systemPossSuperiors=%s))' % (name, name)
return [item[-1]['lDAPDisplayName'][-1] for item in
self.ldap_search_s(dn, SCOPE_SUBTREE, search, ['lDAPDisplayName'])]
+ def schema_request_inferior_classes(self, name):
+ if not self.schema['objectClasses'][name]['inferior']:
+ self.schema['objectClasses'][name]['inferior'] =
self.__find_inferior_classes(name.decode())
+ return self.schema['objectClasses'][name]['inferior']
+
def __load_schema(self):
dn = str(self.search('', SCOPE_BASE, '(objectclass=*)',
['subschemaSubentry'])[0]['subschemaSubentry'])
results = self.search(dn, SCOPE_BASE, '(objectclass=*)',
['attributeTypes', 'dITStructureRules', 'objectClasses', 'nameForms',
'dITContentRules', 'matchingRules', 'ldapSyntaxes', 'matchingRuleUse'])[0]
@@ -253,7 +258,9 @@
self.schema['objectClasses'][name] = {}
self.schema['objectClasses'][name]['id'] = m.group('id')
self.schema['objectClasses'][name]['superior'] =
m.group('superior')
- self.schema['objectClasses'][name]['inferior'] =
self.__find_inferior_classes(name.decode())
+ # Inferior classes should be loaded on-demand,
+ # otherwise this causes significant startup delays
+ self.schema['objectClasses'][name]['inferior'] = None
self.schema['objectClasses'][name]['type'] = m.group('type')
self.schema['objectClasses'][name]['must'] =
m.group('must').strip().split(b' $ ') if m.group('must') else []
self.schema['objectClasses'][name]['may'] =
m.group('may').strip().split(b' $ ') if m.group('may') else []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-adcommon-python-1.3/package/yast2-adcommon-python.changes
new/yast2-adcommon-python-1.4/package/yast2-adcommon-python.changes
--- old/yast2-adcommon-python-1.3/package/yast2-adcommon-python.changes
2019-10-15 22:40:47.000000000 +0200
+++ new/yast2-adcommon-python-1.4/package/yast2-adcommon-python.changes
2020-05-12 17:38:23.000000000 +0200
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue May 12 15:27:03 UTC 2020 - [email protected]
+
+- Fix slow load of ADUC caused by chatty ldap traffic;
+ (bsc#1170998);
+- 1.4
+
+-------------------------------------------------------------------
Tue Oct 15 20:29:53 UTC 2019 - [email protected]
- The domain label should be a text field, for manually entering
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-adcommon-python-1.3/package/yast2-adcommon-python.spec
new/yast2-adcommon-python-1.4/package/yast2-adcommon-python.spec
--- old/yast2-adcommon-python-1.3/package/yast2-adcommon-python.spec
2019-10-15 22:40:47.000000000 +0200
+++ new/yast2-adcommon-python-1.4/package/yast2-adcommon-python.spec
2020-05-12 17:38:23.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-adcommon-python
-Version: 1.3
+Version: 1.4
Release: 0
Summary: Common code for the yast python ad modules
License: GPL-3.0+