← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1375139] Re: LDAP, non ascii characters in CN field couse error while switching projects

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => juno-rc2

** Tags removed: juno-rc-potential

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1375139

Title:
  LDAP, non ascii characters in CN field couse error while switching
  projects

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  2014-09-22 13:33:31.465 2641 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [22/Sep/2014 13:33:31] "POST /v2.0
  /tokens HTTP/1.1" 200 1284 0.223019
  2014-09-22 13:33:31.761 2641 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [22/Sep/2014 13:33:31] "GET /v2.0/
  tenants HTTP/1.1" 200 1814 0.291879
  2014-09-22 13:33:31.837 2641 ERROR keystone.common.wsgi [-] 'ascii' codec can't encode character u'\u010d' 
  in position 13: ordinal not in range(128)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi Traceback (most recent call last):
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/c
  ommon/wsgi.py", line 212, in __call__
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     result = method(context, **params)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/t
  oken/controllers.py", line 89, in authenticate
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     context, auth)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/t
  oken/controllers.py", line 205, in _authenticate_token
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     user_id, tenant_id)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/t
  oken/controllers.py", line 362, in _get_project_roles_and_ref
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     user_id, tenant_id)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/a
  ssignment/core.py", line 181, in get_roles_for_user_and_project
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     user_role_list = _get_user_project_roles(user_i
  d, project_ref)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/a
  ssignment/core.py", line 162, in _get_user_project_roles
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     tenant_id=project_ref['id'])
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/c
  ommon/manager.py", line 78, in _wrapper
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     return f(*args, **kw)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/a
  ssignment/backends/ldap.py", line 118, in _get_metadata
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     tenant_id)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/a
  ssignment/backends/ldap.py", line 95, in _get_roles_for_just_user_and_project
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     if common_ldap.is_dn_equal(a.user_dn, user_dn)]
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib/python2.6/site-packages/keystone/c
  ommon/ldap/core.py", line 276, in is_dn_equal
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     dn1 = ldap.dn.str2dn(dn1)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib64/python2.6/site-packages/ldap/dn.
  py", line 53, in str2dn
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     return ldap.functions._ldap_function_call(_ldap
  .str2dn,dn,flags)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi   File "/usr/lib64/python2.6/site-packages/ldap/fun
  ctions.py", line 57, in _ldap_function_call
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi     result = func(*args,**kwargs)
  2014-09-22 13:33:31.837 2641 TRACE keystone.common.wsgi UnicodeEncodeError: 'ascii' codec can't encode character u'\u010d' in position 13: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1375139/+subscriptions


References