Ask Your Question

user-role-add failed [ldap backend]

asked 2013-04-25 00:09:12 -0500

garyzhao gravatar image

Anyone knows why it failed. user-list showed the user, but user-role-add couldn't find it.

.venv/bin/keystone user-list

+----------------------------------+------+---------+-----------------+ | id | name | enabled | email | +----------------------------------+------+---------+-----------------+ | 94f6d066686446029987bf2aa2b61d8b | gary | | | +----------------------------------+------+---------+-----------------+

$ .venv/bin/keystone user-role-add --user 94f6d066686446029987bf2aa2b61d8b --role eb9a6e76f47143adbdfa369ca7a79e0a --tenant ae6a992637684294a3f320a56e05da3e

No user with a name or ID of '94f6d066686446029987bf2aa2b61d8b' exists.

BTW, I'm using a LDAP server.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-05-04 21:56:21 -0500

garyzhao gravatar image


edit flag offensive delete link more

answered 2013-04-25 03:23:00 -0500

garyzhao gravatar image

Figured out it's a schema issue. It's introduced because I avoided another issue.

When I create a user, looks like the "cn" attribute wasn't sent to LDAP server, so LDAP server rejected the request. Is it a bug on client side or server side?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-04-25 00:09:12 -0500

Seen: 71 times

Last updated: May 04 '13