Commit 7f7c3f84 authored by Julien Cristau's avatar Julien Cristau

Use ldap.initialize instead of ldap.open for compatibility with python-ldap 3.2.0.

parent 49298c2e
......@@ -24,6 +24,7 @@ userdir-ldap (0.3.97) UNRELEASED; urgency=medium
* Delete ud-emailmatcher. Looks broken and unused.
* ud-mailgate: use subprocess.Popen instead of os.popen.
* ud-host: use subprocess.Popen instead of os.popen.
* Use ldap.initialize instead of ldap.open for compatibility with python-ldap 3.2.0.
-- Peter Palfrader <weasel@debian.org> Sat, 06 Apr 2019 22:04:34 +0200
......
......@@ -135,7 +135,7 @@ def connectLDAP(server=None):
if server is None:
global LDAPServer
server = LDAPServer
lc = ldap.open(server)
lc = ldap.initialize('ldap://%s' % server)
global UseSSL
if UseSSL:
lc.start_tls_s()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment