mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Merge pull request #1323 from jbe-dw/fixLDAPDeprecatedOpt
Draft: Fix pyhton-ldap upgrade
This commit is contained in:
commit
8373363c4d
@ -126,7 +126,6 @@ class User(db.Model):
|
|||||||
conn = ldap.initialize(Setting().get('ldap_uri'))
|
conn = ldap.initialize(Setting().get('ldap_uri'))
|
||||||
conn.set_option(ldap.OPT_REFERRALS, ldap.OPT_OFF)
|
conn.set_option(ldap.OPT_REFERRALS, ldap.OPT_OFF)
|
||||||
conn.set_option(ldap.OPT_PROTOCOL_VERSION, 3)
|
conn.set_option(ldap.OPT_PROTOCOL_VERSION, 3)
|
||||||
conn.set_option(ldap.OPT_X_TLS, ldap.OPT_X_TLS_DEMAND)
|
|
||||||
conn.set_option(ldap.OPT_X_TLS_DEMAND, True)
|
conn.set_option(ldap.OPT_X_TLS_DEMAND, True)
|
||||||
conn.set_option(ldap.OPT_DEBUG_LEVEL, 255)
|
conn.set_option(ldap.OPT_DEBUG_LEVEL, 255)
|
||||||
conn.protocol_version = ldap.VERSION3
|
conn.protocol_version = ldap.VERSION3
|
||||||
|
Loading…
Reference in New Issue
Block a user