summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-18 13:36:10 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-18 13:36:10 (GMT)
commit9017334c9304b945d6838816cc4d6fab731df6a4 (patch)
tree2bb7bfe2a39f5c9dcc273e0ccc03e5ad9880fe97
parenta4bbb85b2e377d0fe1bb76f127dc7d5f58d964a3 (diff)
downloadpykolab-9017334c9304b945d6838816cc4d6fab731df6a4.tar.gz
Avoid duplicating the search for a domain root dn / domain connection
-rw-r--r--pykolab/auth/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index fd02083..f07d383 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -180,7 +180,7 @@ class Auth(pykolab.base.Base):
"""
Find one or more entries corresponding to the recipient address.
"""
- if not domain == None:
+ if not domain == None and not self.domain == domain:
self.connect(domain=domain)
result = self._auth.find_recipient(address)