mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
fix: Remove deprecated option OPT_X_TLS
This commit is contained in:
parent
ce4447bb12
commit
8d5b92402d
@ -125,7 +125,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