Keystone fails during LDAP-related operation with UnicodeEncodeError 'ascii' codec can't encode character

Solution Verified - Updated -


  • Following error occur in keystone log (character may vary):

    ERROR keystone.common.wsgi UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 8: ordinal not in range(128)
  • openstack command fails with HTTP 500 error when executed with credentials from keystone domain, which uses LDAP authentication AND error above is in keystone logs.


  • Red Hat OpenStack Platform 13

RHOSP 13 containers that were affected:

  • rhosp13/openstack-keystone:13.0:92
  • rhosp13/openstack-keystone:13.0:96

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In