Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge "Support non-default role_id_attribute"

  • Loading branch information...
commit 1a0d30bf0173f8e03abeac4bda2e807bd4f29412 2 parents 4f4b4a7 + 5b3a74d
Jenkins authored openstack-gerrit committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  keystone/identity/backends/ldap/core.py
View
3  keystone/identity/backends/ldap/core.py
@@ -668,7 +668,8 @@ def _subrole_id_to_dn(self, role_id, tenant_id):
if tenant_id is None:
return self._id_to_dn(role_id)
else:
- return 'cn=%s,%s' % (ldap.dn.escape_dn_chars(role_id),
+ return '%s=%s,%s' % (self.id_attr,
+ ldap.dn.escape_dn_chars(role_id),
self.tenant_api._id_to_dn(tenant_id))
def get(self, id, filter=None):
Please sign in to comment.
Something went wrong with that request. Please try again.