Hello community, here is the log from the commit of package python-ldap for openSUSE:Factory checked in at 2017-09-09 20:26:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ldap (Old) and /work/SRC/openSUSE:Factory/.python-ldap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ldap" Sat Sep 9 20:26:41 2017 rev:44 rq:522190 version:2.4.44 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ldap/python-ldap.changes 2017-09-05 15:17:13.968263136 +0200 +++ /work/SRC/openSUSE:Factory/.python-ldap.new/python-ldap.changes 2017-09-09 20:26:46.464063661 +0200 @@ -1,0 +2,12 @@ +Thu Sep 7 22:23:21 UTC 2017 - [email protected] + +- update to upstream release 2.4.44 + * GIL fix + +------------------------------------------------------------------- +Thu Sep 7 07:57:14 UTC 2017 - [email protected] + +- update to upstream release 2.4.43 + * SASL bind fix + +------------------------------------------------------------------- Old: ---- python-ldap-2.4.42.tar.gz python-ldap-2.4.42.tar.gz.asc New: ---- python-ldap-2.4.44.tar.gz python-ldap-2.4.44.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ldap.spec ++++++ --- /var/tmp/diff_new_pack.vr7xzg/_old 2017-09-09 20:26:47.047981357 +0200 +++ /var/tmp/diff_new_pack.vr7xzg/_new 2017-09-09 20:26:47.051980793 +0200 @@ -17,7 +17,7 @@ Name: python-ldap -Version: 2.4.42 +Version: 2.4.44 Release: 0 Summary: Python LDAP interface License: Python-2.0 ++++++ python-ldap-2.4.42.tar.gz -> python-ldap-2.4.44.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/CHANGES new/python-ldap-2.4.44/CHANGES --- old/python-ldap-2.4.42/CHANGES 2017-09-04 10:54:36.000000000 +0200 +++ new/python-ldap-2.4.44/CHANGES 2017-09-08 00:22:08.000000000 +0200 @@ -1,4 +1,29 @@ ---------------------------------------------------------------- +Released 2.4.44 2017-09-08 + +Changes since 2.4.43: + +Modules/ +* more fine-grained GIL releasing in function l_ldap_result4() + +---------------------------------------------------------------- +Released 2.4.43 2017-09-06 + +Changes since 2.4.42: + +Lib/ +* fixed passing all arguments from LDAPObject.sasl_non_interactive_bind_s() + to LDAPObject.sasl_interactive_bind_s() + +Tests/ +* added test for LDAPObject.sasl_external_bind_s() + +Doc/ +* added docs for SASL bind methods +* more references +* better sorting of LDAPObject methods + +---------------------------------------------------------------- Released 2.4.42 2017-09-04 Changes since 2.4.41: @@ -1476,4 +1501,4 @@ ---------------------------------------------------------------- Released 1.10alpha3 2000-09-19 -$Id: CHANGES,v 1.458 2017/09/04 08:54:36 stroeder Exp $ +$Id: CHANGES,v 1.466 2017/09/07 22:22:08 stroeder Exp $ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/dsml.py new/python-ldap-2.4.44/Lib/dsml.py --- old/python-ldap-2.4.42/Lib/dsml.py 2017-08-15 18:21:58.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/dsml.py 2017-09-07 11:01:01.000000000 +0200 @@ -4,13 +4,13 @@ See https://www.python-ldap.org/ for details. -$Id: dsml.py,v 1.60 2017/08/15 16:21:58 stroeder Exp $ +$Id: dsml.py,v 1.62 2017/09/07 09:01:01 stroeder Exp $ Python compability note: Tested with Python 2.0+. """ -__version__ = '2.4.42' +__version__ = '2.4.44' import string,base64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/ldap/__init__.py new/python-ldap-2.4.44/Lib/ldap/__init__.py --- old/python-ldap-2.4.42/Lib/ldap/__init__.py 2017-08-15 18:21:58.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/ldap/__init__.py 2017-09-07 11:01:01.000000000 +0200 @@ -3,12 +3,12 @@ See https://www.python-ldap.org/ for details. -$Id: __init__.py,v 1.121 2017/08/15 16:21:58 stroeder Exp $ +$Id: __init__.py,v 1.123 2017/09/07 09:01:01 stroeder Exp $ """ # This is also the overall release version number -__version__ = '2.4.42' +__version__ = '2.4.44' import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/ldap/ldapobject.py new/python-ldap-2.4.44/Lib/ldap/ldapobject.py --- old/python-ldap-2.4.42/Lib/ldap/ldapobject.py 2017-08-15 18:21:58.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/ldap/ldapobject.py 2017-09-04 16:59:12.000000000 +0200 @@ -3,7 +3,7 @@ See https://www.python-ldap.org/ for details. -\$Id: ldapobject.py,v 1.164 2017/08/15 16:21:58 stroeder Exp $ +\$Id: ldapobject.py,v 1.165 2017/09/04 14:59:12 stroeder Exp $ Compability: - Tested with Python 2.0+ but should work with Python 1.5.x @@ -253,13 +253,11 @@ """ Send a SASL bind request using a non-interactive SASL method (e.g. GSSAPI, EXTERNAL) """ - self.sasl_interactive_bind_s( - '', - ldap.sasl.sasl( - {ldap.sasl.CB_USER:authz_id}, - sasl_mech - ) + auth = ldap.sasl.sasl( + {ldap.sasl.CB_USER:authz_id}, + sasl_mech ) + self.sasl_interactive_bind_s('',auth,serverctrls,clientctrls,sasl_flags) def sasl_external_bind_s(self,serverctrls=None,clientctrls=None,sasl_flags=ldap.SASL_QUIET,authz_id=''): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/ldapurl.py new/python-ldap-2.4.44/Lib/ldapurl.py --- old/python-ldap-2.4.42/Lib/ldapurl.py 2017-08-15 18:21:58.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/ldapurl.py 2017-09-07 11:01:01.000000000 +0200 @@ -3,7 +3,7 @@ See https://www.python-ldap.org/ for details. -\$Id: ldapurl.py,v 1.96 2017/08/15 16:21:58 stroeder Exp $ +\$Id: ldapurl.py,v 1.98 2017/09/07 09:01:01 stroeder Exp $ Python compability note: This module only works with Python 2.0+ since @@ -11,7 +11,7 @@ 2. list comprehensions are used. """ -__version__ = '2.4.42' +__version__ = '2.4.44' __all__ = [ # constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/ldif.py new/python-ldap-2.4.44/Lib/ldif.py --- old/python-ldap-2.4.42/Lib/ldif.py 2017-08-15 18:21:58.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/ldif.py 2017-09-07 11:01:01.000000000 +0200 @@ -3,13 +3,13 @@ See https://www.python-ldap.org/ for details. -$Id: ldif.py,v 1.116 2017/08/15 16:21:58 stroeder Exp $ +$Id: ldif.py,v 1.118 2017/09/07 09:01:01 stroeder Exp $ Python compability note: Tested with Python 2.0+, but should work with Python 1.5.2+. """ -__version__ = '2.4.42' +__version__ = '2.4.44' __all__ = [ # constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/python_ldap.egg-info/PKG-INFO new/python-ldap-2.4.44/Lib/python_ldap.egg-info/PKG-INFO --- old/python-ldap-2.4.42/Lib/python_ldap.egg-info/PKG-INFO 2017-09-04 10:56:05.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/python_ldap.egg-info/PKG-INFO 2017-09-08 00:22:25.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ldap -Version: 2.4.42 +Version: 2.4.44 Summary: Python modules for implementing LDAP clients Home-page: https://www.python-ldap.org/ Author: python-ldap project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Lib/slapdtest.py new/python-ldap-2.4.44/Lib/slapdtest.py --- old/python-ldap-2.4.42/Lib/slapdtest.py 2017-08-16 15:29:06.000000000 +0200 +++ new/python-ldap-2.4.44/Lib/slapdtest.py 2017-09-07 11:01:01.000000000 +0200 @@ -4,13 +4,13 @@ See https://www.python-ldap.org/ for details. -$Id: slapdtest.py,v 1.19 2017/08/16 13:29:06 stroeder Exp $ +$Id: slapdtest.py,v 1.21 2017/09/07 09:01:01 stroeder Exp $ Python compability note: This module only works with Python 2.7.x since """ -__version__ = '2.4.42' +__version__ = '2.4.44' import os import socket diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Modules/LDAPObject.c new/python-ldap-2.4.44/Modules/LDAPObject.c --- old/python-ldap-2.4.42/Modules/LDAPObject.c 2017-08-15 18:21:59.000000000 +0200 +++ new/python-ldap-2.4.44/Modules/LDAPObject.c 2017-09-07 11:03:00.000000000 +0200 @@ -1,5 +1,5 @@ /* See https://www.python-ldap.org/ for details. - * $Id: LDAPObject.c,v 1.96 2017/08/15 16:21:59 stroeder Exp $ */ + * $Id: LDAPObject.c,v 1.97 2017/09/07 09:03:00 stroeder Exp $ */ #include "common.h" #include "patchlevel.h" @@ -1024,7 +1024,6 @@ int result = LDAP_SUCCESS; char **refs = NULL; LDAPControl **serverctrls = 0; - LDAP_BEGIN_ALLOW_THREADS( self ); if (res_type == LDAP_RES_SEARCH_ENTRY) { /* LDAPmessage_to_python will parse entries and read the controls for each entry */ } else if (res_type == LDAP_RES_SEARCH_REFERENCE) { @@ -1035,7 +1034,9 @@ int rc; if (res_type == LDAP_RES_EXTENDED) { struct berval *retdata = 0; + LDAP_BEGIN_ALLOW_THREADS( self ); rc = ldap_parse_extended_result( self->ldap, msg, &retoid, &retdata, 0 ); + LDAP_END_ALLOW_THREADS( self ); /* handle error rc!=0 here? */ if (rc == LDAP_SUCCESS) { valuestr = LDAPberval_to_object(retdata); @@ -1043,10 +1044,11 @@ ber_bvfree( retdata ); } + LDAP_BEGIN_ALLOW_THREADS( self ); rc = ldap_parse_result( self->ldap, msg, &result, NULL, NULL, &refs, &serverctrls, 0 ); + LDAP_END_ALLOW_THREADS( self ); } - LDAP_END_ALLOW_THREADS( self ); if (result != LDAP_SUCCESS) { /* result error */ char *e, err[1024]; @@ -1061,7 +1063,9 @@ if (!(pyctrls = LDAPControls_to_List(serverctrls))) { int err = LDAP_NO_MEMORY; + LDAP_BEGIN_ALLOW_THREADS( self ); ldap_set_option(self->ldap, LDAP_OPT_ERROR_NUMBER, &err); + LDAP_END_ALLOW_THREADS( self ); ldap_msgfree(msg); return LDAPerror(self->ldap, "LDAPControls_to_List"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/PKG-INFO new/python-ldap-2.4.44/PKG-INFO --- old/python-ldap-2.4.42/PKG-INFO 2017-09-04 10:56:06.000000000 +0200 +++ new/python-ldap-2.4.44/PKG-INFO 2017-09-08 00:22:25.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ldap -Version: 2.4.42 +Version: 2.4.44 Summary: Python modules for implementing LDAP clients Home-page: https://www.python-ldap.org/ Author: python-ldap project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.42/Tests/t_ldapobject.py new/python-ldap-2.4.44/Tests/t_ldapobject.py --- old/python-ldap-2.4.42/Tests/t_ldapobject.py 2017-09-04 09:47:29.000000000 +0200 +++ new/python-ldap-2.4.44/Tests/t_ldapobject.py 2017-09-04 16:59:57.000000000 +0200 @@ -4,7 +4,7 @@ See https://www.python-ldap.org/ for details. -$Id: t_ldapobject.py,v 1.9 2017/09/04 07:47:29 stroeder Exp $ +$Id: t_ldapobject.py,v 1.10 2017/09/04 14:59:57 stroeder Exp $ """ import os @@ -175,6 +175,15 @@ else: self.fail("expected INVALID_CREDENTIALS, got %r" % r) + def test_sasl_extenal_bind_s(self): + l = self.ldap_object_class(self.server.ldapi_uri) + l.sasl_external_bind_s() + self.assertEqual(l.whoami_s(), 'dn:'+self.server.root_dn.lower()) + authz_id = 'dn:cn=Foo2,%s' % (self.server.suffix) + l = self.ldap_object_class(self.server.ldapi_uri) + l.sasl_external_bind_s(authz_id=authz_id) + self.assertEqual(l.whoami_s(), authz_id.lower()) + class Test02_ReconnectLDAPObject(Test01_SimpleLDAPObject): """
