Hello community,
here is the log from the commit of package yast2-adcommon-python for
openSUSE:Factory checked in at 2019-05-15 12:35:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-adcommon-python (Old)
and /work/SRC/openSUSE:Factory/.yast2-adcommon-python.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-adcommon-python"
Wed May 15 12:35:03 2019 rev:3 rq:703003 version:0.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/yast2-adcommon-python/yast2-adcommon-python.changes
2019-04-30 13:06:15.829736557 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-adcommon-python.new.5148/yast2-adcommon-python.changes
2019-05-15 12:35:06.000416742 +0200
@@ -1,0 +2,7 @@
+Tue May 14 21:29:17 UTC 2019 - [email protected]
+
+- Authentication fails with "Failed to initialize ldap connection";
+ (bsc#1135130);
+- 0.4
+
+-------------------------------------------------------------------
Old:
----
yast2-adcommon-python-0.3.tar.bz2
New:
----
yast2-adcommon-python-0.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-adcommon-python.spec ++++++
--- /var/tmp/diff_new_pack.BPUPAk/_old 2019-05-15 12:35:07.060413932 +0200
+++ /var/tmp/diff_new_pack.BPUPAk/_new 2019-05-15 12:35:07.060413932 +0200
@@ -17,7 +17,7 @@
Name: yast2-adcommon-python
-Version: 0.3
+Version: 0.4
Release: 0
Summary: Common code for the yast python ad modules
License: GPL-3.0-or-later
++++++ yast2-adcommon-python-0.3.tar.bz2 -> yast2-adcommon-python-0.4.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-adcommon-python-0.3/adcommon/creds.py
new/yast2-adcommon-python-0.4/adcommon/creds.py
--- old/yast2-adcommon-python-0.3/adcommon/creds.py 2019-04-29
12:48:53.000000000 +0200
+++ new/yast2-adcommon-python-0.4/adcommon/creds.py 2019-05-14
23:35:49.000000000 +0200
@@ -55,11 +55,24 @@
name = k.name
return name
-def kinit_for_gssapi(creds, realm):
- p = Popen([which('kinit'), __format_username(creds.get_username(),
realm)], stdin=PIPE, stdout=PIPE)
+def kinit_for_gssapi_try(creds, realm):
+ p = Popen([which('kinit'), __format_username(creds.get_username(),
realm)], stdin=PIPE, stdout=PIPE, stderr=PIPE)
p.stdin.write(('%s\n' % creds.get_password()).encode())
p.stdin.flush()
- return p.wait() == 0
+ return p
+
+def kinit_for_gssapi(creds, realm):
+ p = kinit_for_gssapi_try(creds, realm)
+ _, err = p.communicate()
+ if p.returncode == 0:
+ return True
+ else:
+ m = re.match(r'kinit: Credential cache directory ([/\w]+) does not
exist while getting default ccache', err.decode())
+ if m:
+ os.makedirs(m.group(1), exist_ok=True)
+ p = kinit_for_gssapi_try(creds, realm)
+ return p.wait() == 0
+ return False
def __msg(msg):
UI.OpenDialog(Opt('warncolor'), MinWidth(30, HBox(HSpacing(1), VBox(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-adcommon-python-0.3/package/yast2-adcommon-python.changes
new/yast2-adcommon-python-0.4/package/yast2-adcommon-python.changes
--- old/yast2-adcommon-python-0.3/package/yast2-adcommon-python.changes
2019-04-29 12:48:53.000000000 +0200
+++ new/yast2-adcommon-python-0.4/package/yast2-adcommon-python.changes
2019-05-14 23:35:49.000000000 +0200
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue May 14 21:29:17 UTC 2019 - [email protected]
+
+- Authentication fails with "Failed to initialize ldap connection";
+ (bsc#1135130);
+- 0.4
+
+-------------------------------------------------------------------
Fri Apr 26 21:23:38 UTC 2019 - [email protected]
- yast2-adcommon-python ldap doesn't correctly parse ldap urls for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-adcommon-python-0.3/package/yast2-adcommon-python.spec
new/yast2-adcommon-python-0.4/package/yast2-adcommon-python.spec
--- old/yast2-adcommon-python-0.3/package/yast2-adcommon-python.spec
2019-04-29 12:48:53.000000000 +0200
+++ new/yast2-adcommon-python-0.4/package/yast2-adcommon-python.spec
2019-05-14 23:35:49.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-adcommon-python
-Version: 0.3
+Version: 0.4
Release: 0
Summary: Common code for the yast python ad modules
License: GPL-3.0+