summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
authorPaul Boddie <paul@boddie.org.uk>2014-05-01 18:59:15 +0200
committerPaul Boddie <paul@boddie.org.uk>2014-05-01 18:59:15 +0200
commit4be0f28d1206999530c72f70f80c7e46ba73908a (patch)
tree6ce59d7fe74b8103c0f4b450f75ef7fbdd1e0cf9 /pykolab/auth/ldap/__init__.py
parent16f5c7e4379ea0e1a77b7332e9832239ec8d0b66 (diff)
parentc7c17c997481b817a42cc8c44d62f4c77d231f22 (diff)
downloadpykolab-4be0f28d1206999530c72f70f80c7e46ba73908a.tar.gz
Merge branch 'master' of git://git.kolab.org/git/pykolab into dev/boddie
Conflicts: pykolab/setup/setup_roundcube.py
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 d6440f2..b22c49a 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1395,6 +1395,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