Merge "fix variable names to coincide with the ones in common.ldap" into stable/essex

This commit is contained in:
Jenkins 2012-07-30 16:11:58 +00:00 committed by Gerrit Code Review
commit 46b3722245
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class Identity(identity.Driver):
if self.LDAP_URL.startswith('fake://'):
conn = fakeldap.FakeLdap(self.LDAP_URL)
else:
conn = common_ldap.LDAPWrapper(self.LDAP_URL)
conn = common_ldap.LdapWrapper(self.LDAP_URL)
if user is None:
user = self.LDAP_USER
if password is None:
@ -243,7 +243,7 @@ class ApiShimMixin(object):
class UserApi(common_ldap.BaseLdap, ApiShimMixin):
DEFAULT_OU = 'ou=Users'
DEFAULT_STRUCTURAL_CLASSES = ['person']
DEFAULT_ID_ATTRIBUTE = 'cn'
DEFAULT_ID_ATTR = 'cn'
DEFAULT_OBJECTCLASS = 'inetOrgPerson'
options_name = 'user'
attribute_mapping = {'password': 'userPassword',
@ -367,7 +367,7 @@ class TenantApi(common_ldap.BaseLdap, ApiShimMixin):
DEFAULT_OU = 'ou=Groups'
DEFAULT_STRUCTURAL_CLASSES = []
DEFAULT_OBJECTCLASS = 'groupOfNames'
DEFAULT_ID_ATTRIBUTE = 'cn'
DEFAULT_ID_ATTR = 'cn'
DEFAULT_MEMBER_ATTRIBUTE = 'member'
options_name = 'tenant'
attribute_mapping = {'description': 'desc', 'name': 'ou'}