Why do I receive a "TLS or SSL already in effect" error using LDAP in Ansible Automation Controller?
Issue
When trying to authenticate LDAP users in Ansible Automation Controller the following error can be seen from the logs:
django_auth_ldap Caught LDAPError while authenticating user@domain: OPERATIONS_ERROR({'info': '00000000: LdapErr: DSID-0C090F86, comment: TLS or SSL already in effect, data 0, v2580', 'desc': 'Operations error'},)
There are slight variations to this error that could occur. For example, here's the same error with a slightly different LdapErr
code:
django_auth_ldap Caught LDAPError while authenticating user: OPERATIONS_ERROR({'result': 1, 'desc': 'Operations error', 'ctrls': [], 'info': '00000000: LdapErr: DSID-0C0915AE, comment: TLS or SSL already in effect, data 0, v4563'})
Free IPA / Red Hat IDM might throw this:
django_auth_ldap Caught LDAPError while authenticating user@exampl.corp: OPERATIONS_ERROR({'info': 'SSL connection already established.', 'desc': 'Operations error'},)
Environment
- Ansible Automation Platform 2.4 (Automation Controller)
- Ansible Automation Platform 2.5 (Gateway)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.