mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
fix a bug that breaks OPT_X_TLS_REQUIRE_CERT=0 for LDAP authentication
This commit is contained in:
@@ -66,7 +66,7 @@ class LDAPSettings(BaseLDAPSettings):
|
|||||||
# see: https://github.com/python-ldap/python-ldap/issues/55
|
# see: https://github.com/python-ldap/python-ldap/issues/55
|
||||||
newctx_option = self.CONNECTION_OPTIONS.pop(ldap.OPT_X_TLS_NEWCTX, None)
|
newctx_option = self.CONNECTION_OPTIONS.pop(ldap.OPT_X_TLS_NEWCTX, None)
|
||||||
self.CONNECTION_OPTIONS = OrderedDict(self.CONNECTION_OPTIONS)
|
self.CONNECTION_OPTIONS = OrderedDict(self.CONNECTION_OPTIONS)
|
||||||
if newctx_option:
|
if newctx_option is not None:
|
||||||
self.CONNECTION_OPTIONS[ldap.OPT_X_TLS_NEWCTX] = newctx_option
|
self.CONNECTION_OPTIONS[ldap.OPT_X_TLS_NEWCTX] = newctx_option
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user