# case-sensitive LDAP authentication

**URL:** <https://forum.ansible.com/t/case-sensitive-ldap-authentication/26469>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [January 12, 2018, 1:32pm UTC](https://forum.ansible.com/t/case-sensitive-ldap-authentication/26469 "2018-01-12T13:32:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rainer\_Franzel](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Rainer\_Franzel](https://forum.ansible.com/u/Rainer_Franzel)\
**Post date:** [January 12, 2018, 1:32pm UTC](https://forum.ansible.com/t/case-sensitive-ldap-authentication/26469/1 "2018-01-12T13:32:57Z")

</div>

Hi,

We are facing the problem when trying to authenticate AWX-users via OpenLDAP:

- LDAP-bind : OK
- User-Search return correct LDAP dn (return value is lower case)
- User-bind fails because OpenLDAP is case sensitive on this field and therefore rejects the user.

Trace from awx\_web:

2018-01-12 12:36:04,529 DEBUG django\_auth\_ldap search\_s(‘ou=people, **OuId=BBA** ,dc=example,dc=org’, 1, ‘(&(uid=%(user)s)(objectClass=inetOrgPerson))’) returned 1 objects: gvgid=rainer\_xxxxx,ou=people, **ouid=bba** ,dc=example,dc=org  
2018-01-12 12:36:04,530 DEBUG django\_auth\_ldap Authentication failed for [rainer.franzel@example.org](mailto:rainer.franzel@example.org): user DN/password rejected by LDAP server.

2018-01-12 12:36:04,599 WARNING awx.api.views Login failed for user [rainer.franzel@example.org](mailto:rainer.franzel@example.org)

In the first line auth\_ldap\_search finds the correct user DN but attribute OuId=BBA is returned in lowercase!  
Therefore ldap auth fails in the next step

Is this a know issue and/or a way to solve this?

Thank you for any support,  
Rainer
