identities: use get_identity_class() in IdentitiesStoreLdap to instantiante identity objects
This commit is contained in:
parent
7c6cbb804d
commit
28e7914ee4
|
@ -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('+')
|
||||
|
|
Reference in New Issue