yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11811
[Bug 1294532] [NEW] Create user with tenantid failed when using ldap driver
Public bug reported:
When using ldap as identity driver instead of sql, creating user with tenantid failed.
For example,when using this command:keystone user-create --name demo --pass demo --tenant-id XXXXXXXXXXXXXXXXXX, it returns this error: ERROR {'info': 'tenantId: attribute type undefined', 'desc': 'Undefined attribute type'}.
To resolve this bug, we must modify the core.py in the path
keystone/common/ldap.
In BaseLdap.create(),there si a statement like this : if k == 'id' or k in self.attribute_ignore: continue
it must be changed to this one:
if k == 'id' or k in self.attribute_ignore or k == 'tenantId':
continue
then the above user-create command can success.
** Affects: keystone
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1294532
Title:
Create user with tenantid failed when using ldap driver
Status in OpenStack Identity (Keystone):
New
Bug description:
When using ldap as identity driver instead of sql, creating user with tenantid failed.
For example,when using this command:keystone user-create --name demo --pass demo --tenant-id XXXXXXXXXXXXXXXXXX, it returns this error: ERROR {'info': 'tenantId: attribute type undefined', 'desc': 'Undefined attribute type'}.
To resolve this bug, we must modify the core.py in the path
keystone/common/ldap.
In BaseLdap.create(),there si a statement like this : if k == 'id' or k in self.attribute_ignore: continue
it must be changed to this one:
if k == 'id' or k in self.attribute_ignore or k == 'tenantId':
continue
then the above user-create command can success.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1294532/+subscriptions
Follow ups
References