server/sources/ldapuser.py
changeset 6142 8bc6eac1fac1
parent 5972 220856aff85e
child 6427 c8a5ac2d1eaa
equal deleted inserted replaced
6141:b8287e54b528 6142:8bc6eac1fac1
   572         """
   572         """
   573         self.debug('ldap before entity insertion')
   573         self.debug('ldap before entity insertion')
   574         entity = super(LDAPUserSource, self).before_entity_insertion(session, lid, etype, eid)
   574         entity = super(LDAPUserSource, self).before_entity_insertion(session, lid, etype, eid)
   575         res = self._search(session, lid, BASE)[0]
   575         res = self._search(session, lid, BASE)[0]
   576         for attr in entity.e_schema.indexable_attributes():
   576         for attr in entity.e_schema.indexable_attributes():
   577             entity[attr] = res[self.user_rev_attrs[attr]]
   577             entity.cw_edited[attr] = res[self.user_rev_attrs[attr]]
   578         return entity
   578         return entity
   579 
   579 
   580     def after_entity_insertion(self, session, dn, entity):
   580     def after_entity_insertion(self, session, dn, entity):
   581         """called by the repository after an entity stored here has been
   581         """called by the repository after an entity stored here has been
   582         inserted in the system table.
   582         inserted in the system table.