Update user name not supported by LDAP identity driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Run command keystone help user-update, know that user name can be updated.
[root@localhost ~]# keystone help user-update
usage: keystone user-update [--name <user-name>] [--email <email>]
Update user's name, email, and enabled status
Arguments:
--name <user-name> Desired new user name
--email <email> Desired new email address
--enabled <true|false>
<user> Name or ID of user to update
Update username from yahongdu to yhd, but failed
[root@localhost ~]# keystone user-update --name yhd yahongdu
Unable to update user: Cannot change user name (HTTP 409)
Changed in keystone: | |
status: | Invalid → New |
/usr/lib/ python2. 6/site- packages/ keystone/ identity/ backends/ ldap.py
def update_user(self, user_id, user): _api._validate_ default_ domain( user) ValidationError ('Cannot change user ID') get(user_ id) Conflict( 'Cannot change user name')
user = self.assignment
if 'id' in user and user['id'] != user_id:
raise exception.
old_obj = self.user.
if 'name' in user and old_obj.get('name') != user['name']:
raise exception.
This is the code that cause this issue. I will remove the check for name. If anyone has any other concern, please let me know.