If you are having trouble getting your AWX deployment to preform authentication with LDAP you might want to make sure that the container that runs the AWX web server can talk to the LDAP server over a encrypted connection. To do this follow these steps:
1) List your AWX pods like so:kubectl -n awx get pods
You are looking for the pod that has the 4 containers. In my case this is pod, awx-demo-8ded6678-gk322.
2) "exec" onto the awx-demo-web container like so:kubectl -n awx exec -it awx-demo-8ded6678-gk322 -c awx-demo-web -- /bin/bash
echo | openssl s_client -connect ldap.example.com:636
Check the output. Are you getting output? You can check the dates on the certificate like so:
echo | openssl s_client -connect ldap.example.com:636 2> /dev/null | openssl x509 -noout -dates
I have a K3s cluster and I set up my AWX server by installing awx-operator. I also have an OpenLDAP server. My OpenLDAP server has a signed valid TLS Cert and works fine.
Next I log on to my AWX server as the 'admin' user.
You get the password for this account by executing:
kubectl get secret awx-demo-admin-password -o jsonpath={.data.password} | base64 --decode
I navigate to "Settings > LDAP Default" and filled out the form. Set: