server/sources/ldapuser.py
changeset 4913 083b4d454192
parent 4719 aaed3f813ef8
child 5138 18388a897d2a
--- a/server/sources/ldapuser.py	Wed Mar 10 16:07:24 2010 +0100
+++ b/server/sources/ldapuser.py	Mon Mar 01 11:26:14 2010 +0100
@@ -476,7 +476,8 @@
             if eid:
                 self.warning('deleting ldap user with eid %s and dn %s',
                              eid, base)
-                self.repo.delete_info(session, eid)
+                entity = session.entity_from_eid(eid, 'CWUser')
+                self.repo.delete_info(session, entity, self.uri, base)
                 self._cache.pop(base, None)
             return []
 ##         except ldap.REFERRAL, e:
@@ -554,7 +555,7 @@
         """replace an entity in the source"""
         raise RepositoryError('this source is read only')
 
-    def delete_entity(self, session, etype, eid):
+    def delete_entity(self, session, entity):
         """delete an entity from the source"""
         raise RepositoryError('this source is read only')