# OpenLDAP Configuration issue with AWX

**URL:** <https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 20, 2019, 5:11am UTC](https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719 "2019-02-20T05:11:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mithun\_lal](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mithun\_lal](https://forum.ansible.com/u/Mithun_lal)\
**Post date:** [February 20, 2019, 5:11am UTC](https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719/1 "2019-02-20T05:11:00Z")

</div>

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](mailto: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)**
>
> ![awx_eg2.png](https://us1.discourse-cdn.com/ansible/original/2X/e/e7386c589c5fe6a1f03ae5a9b2d50d89da98cba0.png)  
> ![awx_eg1.png](https://us1.discourse-cdn.com/ansible/original/2X/0/0ac3dfa8c867654813f14926851043f38f24df0d.png)

---

<div class="post-metadata">

**Author:** ![Mithun\_lal](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mithun\_lal](https://forum.ansible.com/u/Mithun_lal)\
**Post date:** [February 21, 2019, 10:42am UTC](https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719/2 "2019-02-21T10:42:45Z")

</div>

Could anyone assist in this scenario ?

Thanks,  
Mithun

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [February 21, 2019, 4:17pm UTC](https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719/3 "2019-02-21T16:17:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mithun\_lal](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mithun\_lal](https://forum.ansible.com/u/Mithun_lal)\
**Post date:** [February 22, 2019, 5:19am UTC](https://forum.ansible.com/t/openldap-configuration-issue-with-awx/29719/4 "2019-02-22T05:19:34Z")

</div>

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/](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
