OpenLDAP Configuration issue with AWX

Hi Team,

I am trying to implement OpenLDAP configuration onto AWX. Even after making all the correct changes LDAP users are unable to login to AWX.
Below are my configuration pages.

User: awx
I created a new user in DNS for this task.

AWX is implemented via Dockerized containers. And I even tested the connectivity of ldap server using the below command,

ldapsearch -x -H ldap://blah.com:389 -D “awx@blah.com” -W -b “cn=users,dc=blah,dc=com” -s sub “(cn=*)” cn mail sn

Could anyone help me in this regards.

Thanks,
Mithun

(attachments)


Could anyone assist in this scenario ?

Thanks,
Mithun

Can you post the LDAP error message that occurs when you try logging in? You can get the error by watching logs on the web containers as you try logging into AWX.

Hi Uriel,

Thanks for your response.
Find below the error message from the awx container,

019-02-22 05:14:27,551 WARNING django_auth_ldap Caught LDAPError while authenticating mithun: NO_SUCH_OBJECT({‘desc’: ‘No such object’, ‘matched’: ‘dc=blah,dc=com’},)
[pid: 134|app: 0|req: 25/57] 172.17.15.3 () {52 vars in 1132 bytes} [Fri Feb 22 05:14:27 2019] POST /api/login/ => generated 5890 bytes in 122 msecs (HTTP/1.1 401) 8 headers in 378 bytes (1 switches on core 0)
172.17.15.3 - - [22/Feb/2019:05:14:27 +0000] “POST /api/login/ HTTP/1.1” 401 5890 “http://awx.blah.com/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36” “-”

Please do let me know, if there is a way to resolve this issue.
Much appreciated.

Regards,
Mithun