mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Merge pull request #4276 from ryanpetrello/ldap-tls-verify-off
fix a bug that breaks OPT_X_TLS_REQUIRE_CERT=0 for LDAP authentication Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
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