summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-03 14:34:58 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-04 13:40:08 +0100
commit9899cbee690d29e6ed8b9ffb9b0161625dd1e0e2 (patch)
tree26300832d3d1781bfa2fdc64ea796bb13dc5ad6d
parent4275f237a86d32880569c8cd65c15565dde6130f (diff)
downloadpykolab-9899cbee690d29e6ed8b9ffb9b0161625dd1e0e2.tar.gz
Disconnect from the authn/authz database after closing the client connection
-rw-r--r--pykolab/auth/__init__.py2
-rw-r--r--saslauthd/__init__.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 359a0f6..dae8edc 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -160,7 +160,7 @@ class Auth(pykolab.base.Base):
self._auth.connect()
- def disconnect(self):
+ def disconnect(self, domain=None):
"""
Connect to the domain authentication backend using domain, or fall
back to the primary domain specified by the configuration.
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index edbca94..933b81d 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -208,6 +208,7 @@ class SASLAuthDaemon(object):
pass
clientsocket.close()
+ auth.disconnect()
def reload_config(self, *args, **kw):
pass