Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/keystone/assignment/backends/ldap.py b/keystone/assignment/backends/ldap.py
- index cd27f9e..47635fb 100644
- --- a/keystone/assignment/backends/ldap.py
- +++ b/keystone/assignment/backends/ldap.py
- @@ -411,6 +411,7 @@ class ProjectApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap):
- notfound_arg = 'project_id' # NOTE(yorik-sar): while options_name = tenant
- options_name = 'project'
- attribute_options_names = {'name': 'name',
- + 'id': 'id',
- 'description': 'desc',
- 'enabled': 'enabled',
- 'domain_id': 'domain_id'}
- @@ -491,7 +492,8 @@ class RoleApi(common_ldap.BaseLdap):
- DEFAULT_MEMBER_ATTRIBUTE = 'roleOccupant'
- NotFound = exception.RoleNotFound
- options_name = 'role'
- - attribute_options_names = {'name': 'name'}
- + attribute_options_names = {'name': 'name',
- + 'id': 'id'}
- immutable_attrs = ['id']
- model = models.Role
- diff --git a/keystone/identity/backends/ldap.py b/keystone/identity/backends/ldap.py
- index 517674c..7c1f5b5 100644
- --- a/keystone/identity/backends/ldap.py
- +++ b/keystone/identity/backends/ldap.py
- @@ -193,6 +193,7 @@ class UserApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap):
- attribute_options_names = {'password': 'pass',
- 'email': 'mail',
- 'name': 'name',
- + 'id': 'id',
- 'enabled': 'enabled',
- 'default_project_id': 'default_project_id'}
- immutable_attrs = ['id']
- @@ -256,6 +257,7 @@ class GroupApi(common_ldap.BaseLdap):
- NotFound = exception.GroupNotFound
- options_name = 'group'
- attribute_options_names = {'description': 'desc',
- + 'id': 'id',
- 'name': 'name'}
- immutable_attrs = ['name']
- model = models.Group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement