[tryton-debian-vcs] tryton-modules-ldap-authentication branch upstream updated. upstream/3.4.0-1-g709a2f3

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Mar 4 00:34:07 UTC 2015


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-ldap-authentication.git;a=commitdiff;h=upstream/3.4.0-1-g709a2f3

commit 709a2f34a31baef50c34da626da12cad18531696
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Mar 3 20:26:46 2015 +0100

    Adding upstream version 3.4.1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index 109cd4e..b0c8923 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.1 - 2015-02-26
+* Bug fixes (see mercurial logs for details)
+
 Version 3.4.0 - 2014-10-20
 * Bug fixes (see mercurial logs for details)
 * Use trytond configuration for connection
diff --git a/COPYRIGHT b/COPYRIGHT
index c7afa3f..1e8c07c 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2006-2014 Cédric Krier.
+Copyright (C) 2006-2015 Cédric Krier.
 Copyright (C) 2009-2012 Bertrand Chenal.
-Copyright (C) 2009-2014 B2CK SPRL.
+Copyright (C) 2009-2015 B2CK SPRL.
 Copyright (C) 2008-2012 Udo Spallek.
 Copyright (C) 2008-2011 virtual things.
 
diff --git a/INSTALL b/INSTALL
index 1a63572..f49e587 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,7 +6,6 @@ Prerequisites
 
  * Python 2.7 or later (http://www.python.org/)
  * trytond (http://www.tryton.org/)
- * trytond_ldap_connection (http://www.tryton.org/)
  * python-ldap (http://python-ldap.sourceforge.net/)
 
 Installation
diff --git a/PKG-INFO b/PKG-INFO
index 2889fc0..be04963 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_ldap_authentication
-Version: 3.4.0
+Version: 3.4.1
 Summary: Tryton module to authenticate users through LDAP
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/res.py b/res.py
index 31ac1f9..e31f512 100644
--- a/res.py
+++ b/res.py
@@ -14,6 +14,11 @@ __metaclass__ = PoolMeta
 logger = logging.getLogger(__name__)
 section = 'ldap_authentication'
 
+# Old version of urlparse doesn't parse query for ldap
+# see http://bugs.python.org/issue9374
+if hasattr(urlparse, 'uses_query') and 'ldap' not in urlparse.uses_query:
+    urlparse.uses_query.append('ldap')
+
 
 def parse_ldap_url(uri):
     unquote = urlparse.unquote
@@ -44,9 +49,9 @@ def ldap_connection():
     if 'tls' in uri.scheme:
         conn.start_tls_s()
 
-    bindname = extensions.get('bindname')
+    bindname, = extensions.get('bindname', [None])
     if not bindname:
-        bindname = extensions.get('!bindname')
+        bindname, = extensions.get('!bindname', [None])
     if bindname:
         # XXX find better way to get the password
         conn.simple_bind_s(bindname, config.get(section, 'bind_pass'))
@@ -105,7 +110,7 @@ class User:
         except ldap.LDAPError, e:
             logger.error('LDAPError: %s' % str(e))
         if find:
-            cls.raise_user_error('set_passwd_ldap_user', (login.rec_name,))
+            cls.raise_user_error('set_passwd_ldap_user', (login,))
 
     @classmethod
     def create(cls, vlist):
diff --git a/tryton.cfg b/tryton.cfg
index de04464..5b29448 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.4.0
+version=3.4.1
 depends:
     ir
     res
diff --git a/trytond_ldap_authentication.egg-info/PKG-INFO b/trytond_ldap_authentication.egg-info/PKG-INFO
index b4310ff..e9aa2db 100644
--- a/trytond_ldap_authentication.egg-info/PKG-INFO
+++ b/trytond_ldap_authentication.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-ldap-authentication
-Version: 3.4.0
+Version: 3.4.1
 Summary: Tryton module to authenticate users through LDAP
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-ldap-authentication



More information about the tryton-debian-vcs mailing list