Remove ldap identity domain attribute options

LDAP Identity backend is not domain aware, and therefore does not
need mappings for the domain attributes for user and group.

closes-bug: 1209440
Change-Id: Ib7b77b90134322d04b5826b151d05535b9b8b7c7
This commit is contained in:
Morgan Fainberg 2013-09-19 19:53:02 -07:00 committed by Gerrit Code Review
parent dda19c3977
commit 668ee71812
3 changed files with 1 additions and 8 deletions

View File

@ -341,7 +341,6 @@
# user_tree_dn = ou=Users,dc=example,dc=com
# user_filter =
# user_objectclass = inetOrgPerson
# user_domain_id_attribute = businessCategory
# user_id_attribute = cn
# user_name_attribute = sn
# user_mail_attribute = email

View File

@ -178,8 +178,6 @@ FILE_OPTIONS = {
cfg.StrOpt('user_mail_attribute', default='email'),
cfg.StrOpt('user_pass_attribute', default='userPassword'),
cfg.StrOpt('user_enabled_attribute', default='enabled'),
cfg.StrOpt('user_domain_id_attribute',
default='businessCategory'),
cfg.IntOpt('user_enabled_mask', default=0),
cfg.StrOpt('user_enabled_default', default='True'),
cfg.ListOpt('user_attribute_ignore',
@ -232,8 +230,6 @@ FILE_OPTIONS = {
cfg.StrOpt('group_name_attribute', default='ou'),
cfg.StrOpt('group_member_attribute', default='member'),
cfg.StrOpt('group_desc_attribute', default='description'),
cfg.StrOpt('group_domain_id_attribute',
default='businessCategory'),
cfg.ListOpt('group_attribute_ignore', default=''),
cfg.BoolOpt('group_allow_create', default=True),
cfg.BoolOpt('group_allow_update', default=True),

View File

@ -194,7 +194,6 @@ class UserApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap):
'email': 'mail',
'name': 'name',
'enabled': 'enabled',
'domain_id': 'domain_id',
'default_project_id': 'default_project_id'}
immutable_attrs = ['id']
@ -253,8 +252,7 @@ class GroupApi(common_ldap.BaseLdap):
NotFound = exception.GroupNotFound
options_name = 'group'
attribute_options_names = {'description': 'desc',
'name': 'name',
'domain_id': 'domain_id'}
'name': 'name'}
immutable_attrs = ['name']
model = models.Group