summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/__init__.py')
-rw-r--r--pykolab/auth/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index f07d383..ea8cea6 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -183,6 +183,9 @@ class Auth(pykolab.base.Base):
if not domain == None and not self.domain == domain:
self.connect(domain=domain)
+ if not self._auth or self._auth == None:
+ self.connect(domain=domain)
+
result = self._auth.find_recipient(address)
if isinstance(result, list) and len(result) == 1: