ldap config "user_id_attribute" is ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
In Progress
|
High
|
Marek Denis | ||
python-keystoneclient |
Invalid
|
High
|
Unassigned |
Bug Description
I can sucessfully configure keystone LDAP settings and keystone user-list works fine. Shows to me id, name, enabled and email correctly. But when I do a "keystone user-get foo" the message shows:
No user with a name or ID of 'foo' exists.
The configuration file for user and ldap options are:
----
[ldap]
url = ldap://
suffix = dc=my,dc=
objectClass = posixAccount
user_tree_dn = ou=people,
user_objectclass = posixAccount
user_unit = "People"
user_id_attribute = uid
user_name_attribute = cn
user_mail_attribute = mail
user_pass_attribute = userPassword
user_enabled_
user_enabled_mask = 255
user_enabled_
user_attribute_
user_allow_create = False
user_allow_update = False
user_allow_delete = False
----
I dont use Active Directory, so cn (the default user_id_attribute) is the full user name and not a login. In my base login is uid.
If I do a keystone user-get "Full Name of Foo" works fine. But sorry if is a mistake of me, but IMHO, should works with user_id_attribute configured in config file.
Changed in python-keystoneclient: | |
assignee: | nobody → Adam Young (ayoung) |
tags: |
added: havana-rc-potential removed: havana-backport-potential |
Changed in keystone: | |
assignee: | nobody → Adam Young (ayoung) |
tags: |
added: havana-backport-potential removed: havana-rc-potential |
Changed in keystone: | |
status: | New → Confirmed |
Changed in keystone: | |
status: | Confirmed → Incomplete |
Changed in python-keystoneclient: | |
status: | New → Incomplete |
tags: | removed: grizzly-backport-potential |
tags: | removed: keystone |
Changed in keystone: | |
assignee: | nobody → Eric N. Vander Weele (ericvw) |
Changed in keystone: | |
assignee: | Eric N. Vander Weele (ericvw) → Adam Young (ayoung) |
Changed in keystone: | |
assignee: | Adam Young (ayoung) → Eric N. Vander Weele (ericvw) |
Changed in keystone: | |
assignee: | Eric N. Vander Weele (ericvw) → Marek Denis (marek-denis) |
I suspect this is an issue with keystoneclient attempting to incorrectly "guess" whether you're providing ID or name.