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-10-23 10:11:51 (GMT)
commit4e0f2935fbd85e7ba235d2f10a5dedefac066856 (patch)
treef116c7b5b0e4f4e12c38b115b58fac71a5bdb086
parent141606a63cb6561e548a4839b998c2103b145377 (diff)
downloadpykolab-4e0f2935fbd85e7ba235d2f10a5dedefac066856.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 9a5c262..1ae82e2 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -181,7 +181,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)