mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Explicitly set authentication mode in ldap3
This only makes a difference for versions of ldap3 before 1.0, but a) its best to be explicit and b) there are distributions that package ancient versions for ldap3 (e.g. debian).
This commit is contained in:
parent
4a9055d446
commit
27d3f2e7ab
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user