Set default 'ou' name for LDAP projects to Projects

The default ou name for projects/tenants should be Projects, as we normally
use in devstack and ldap live test. Since multiple LDAP objects can
use groupOfNames, setting projects group to Groups is vague.

Fixes Bug1191807

Change-Id: I1718c76320da51a58abf6558a9b8560e908773cb
This commit is contained in:
Sahdev Zala 2013-06-17 15:18:44 -05:00
parent c285fa7efb
commit 96dea469c9
3 changed files with 4 additions and 4 deletions

View File

@ -1008,7 +1008,7 @@ for openstack would look like this::
objectClass: organizationalUnit
ou: openstack
dn: ou=Groups,dc=openstack,dc=org
dn: ou=Projects,dc=openstack,dc=org
objectClass: top
objectClass: organizationalUnit
ou: groups
@ -1036,7 +1036,7 @@ The corresponding entries in the Keystone configuration file are::
user_tree_dn = ou=Users,dc=openstack,dc=org
user_objectclass = inetOrgPerson
tenant_tree_dn = ou=Groups,dc=openstack,dc=org
tenant_tree_dn = ou=Projects,dc=openstack,dc=org
tenant_objectclass = groupOfNames
role_tree_dn = ou=Roles,dc=openstack,dc=org

View File

@ -192,7 +192,7 @@
# user_enabled_emulation = False
# user_enabled_emulation_dn =
# tenant_tree_dn = ou=Groups,dc=example,dc=com
# tenant_tree_dn = ou=Projects,dc=example,dc=com
# tenant_filter =
# tenant_objectclass = groupOfNames
# tenant_domain_id_attribute = businessCategory

View File

@ -498,7 +498,7 @@ class UserApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap, ApiShimMixin):
# TODO(termie): turn this into a data object and move logic to driver
class ProjectApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap,
ApiShimMixin):
DEFAULT_OU = 'ou=Groups'
DEFAULT_OU = 'ou=Projects'
DEFAULT_STRUCTURAL_CLASSES = []
DEFAULT_OBJECTCLASS = 'groupOfNames'
DEFAULT_ID_ATTR = 'cn'