Skip to content
Snippets Groups Projects
Commit 291628d4 authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge branch 'erikj/ldap3_auth'

parents 4a9055d4 3c09818d
Branches
Tags v0.18.3
No related merge requests found
Changes in synapse v0.18.3 (2016-11-08)
=======================================
SECURITY UPDATE
Explicitly require authentication when using LDAP3. This is the default on
versions of ``ldap3`` above 1.0, but some distributions will package an older
version.
If you are using LDAP3 login and have a version of ``ldap3`` older than 1.0 it
is **CRITICAL to updgrade**.
Changes in synapse v0.18.2 (2016-11-01) Changes in synapse v0.18.2 (2016-11-01)
======================================= =======================================
......
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
""" This is a reference implementation of a Matrix home server. """ This is a reference implementation of a Matrix home server.
""" """
__version__ = "0.18.2" __version__ = "0.18.3"
...@@ -236,7 +236,8 @@ class LdapAuthProvider(object): ...@@ -236,7 +236,8 @@ class LdapAuthProvider(object):
value=localpart, value=localpart,
base=self.ldap_base base=self.ldap_base
) )
conn = ldap3.Connection(server, bind_dn, password) conn = ldap3.Connection(server, bind_dn, password,
authentication=ldap3.AUTH_SIMPLE)
logger.debug( logger.debug(
"Established LDAP connection in simple bind mode: %s", "Established LDAP connection in simple bind mode: %s",
conn conn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment