This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit b00a83e998fb6f1fe058063ccd0cfa95846d3f25
Author: Dave Brondsema <[email protected]>
AuthorDate: Wed Dec 1 12:57:42 2021 -0500

    Change ldap to simple_bind_s (does same thing, lets mockldap be used in 
tests)
---
 Allura/allura/lib/plugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 7e9c85d..c6d7306 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -641,8 +641,8 @@ def ldap_conn(who=None, cred=None):
     specified. Remember to unbind the connection when done.
     '''
     con = ldap.initialize(config['auth.ldap.server'])
-    con.bind_s(who or config['auth.ldap.admin_dn'],
-               cred or config['auth.ldap.admin_password'])
+    con.simple_bind_s(who or config['auth.ldap.admin_dn'],
+                      cred or config['auth.ldap.admin_password'])
     return con
 
 

Reply via email to