summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-04-23 17:54:57 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-04-23 17:54:57 -0400
commitc7c17c997481b817a42cc8c44d62f4c77d231f22 (patch)
treee4246aa82656fd186753543879f0f57d1bef8815 /pykolab/auth/ldap/__init__.py
parentfa3076751a06dc0b9d648719e517619d61e9e03d (diff)
downloadpykolab-c7c17c997481b817a42cc8c44d62f4c77d231f22.tar.gz
Add kolabd plugin to cleanup Roundcube's database after deleting a Kolab user from LDAP
Diffstat (limited to 'pykolab/auth/ldap/__init__.py')
-rw-r--r--pykolab/auth/ldap/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index c0c3297..8379c0c 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1436,6 +1436,15 @@ class LDAP(pykolab.base.Base):
self.imap.user_mailbox_delete(entry[result_attribute])
self.imap.cleanup_acls(entry[result_attribute])
+ # let plugins act upon this deletion
+ conf.plugins.exec_hook(
+ 'user_delete',
+ kw = {
+ 'user': entry,
+ 'domain': self.domain
+ }
+ )
+
def _change_moddn_group(self, entry, change):
# TODO: If the rdn attribute is the same as the result attribute...
pass