Add fix to ldap_authentication module.

This commit is contained in:
Albert Cervera i Areny 2014-07-11 16:06:52 +02:00
parent 03eacc41da
commit 4465322aa7
2 changed files with 13 additions and 0 deletions

12
ldap_authentication.diff Normal file
View file

@ -0,0 +1,12 @@
diff -r 26a124068f61 res.py
--- a/trytond/trytond/modules/ldap_authentication/res.py Mon Apr 21 21:00:24 2014 +0200
+++ b/trytond/trytond/modules/ldap_authentication/res.py Fri Jul 11 16:03:59 2014 +0200
@@ -131,7 +131,7 @@
[(dn, attrs)] = cls.ldap_search_user(login, con, connection,
attrs=[str(connection.auth_uid)])
if password and con.simple_bind_s(dn, password):
- user_id, _, _ = cls._get_login(login)
+ user_id, _ = cls._get_login(login)
if user_id:
LoginAttempt.remove(login)
return user_id

1
series
View file

@ -21,3 +21,4 @@ issue12381002_1_10001.diff
issue8461003_1.diff
issue10391004_1.diff
issue234_703_16370.diff
ldap_authentication.diff