Why am I Getting Errors When I Have Special Characters in the LDAP Configuration in Ansible Tower?

Solution Verified - Updated -


Trying to put special characters in the LDAP configuration via Tower UI or API will result in an error. For example, a mapping like the following:

 "Team2-tower": {
  "organization": "Test",
  "users": "CN=Test_Opérationnel,OU=***,DC=***,DC=***",
  "remove": true

Note the special character é in Test_Opérationnel.

With the above, we get the following stack in Tower logs:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)


  • Ansible Tower >= 3.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In