identities: use get_identity_class() in IdentitiesStoreLdap to instantiante identity objects

This commit is contained in:
Benjamin Dauvergne 2014-01-09 12:12:12 +01:00
parent 7c6cbb804d
commit 28e7914ee4
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ class IdentitiesStoreLdap(BaseIdentitiesStore):
return self.field_name2attribute(field.key)
def ldap2identity(self, v):
i = Identity()
i = self.get_identity_class()()
i.id = v[0]
if self.ldap_object_name:
keys = self.ldap_object_name.split('+')