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__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 04c286d..3d1141c 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -231,13 +231,13 @@ class Auth(pykolab.base.Base):
domains = self._auth._list_domains(domain)
except:
if not self.domain == kolab_primary_domain:
- return { self.domain: [] }
+ return { self.domain: self.domain }
else:
- domains = []
+ domains = {}
# If no domains are found, the primary domain is used.
if len(domains) < 1:
- self.domains = { kolab_primary_domain: [] }
+ self.domains = { kolab_primary_domain: kolab_primary_domain }
else:
self.domains = {}
for primary, secondaries in domains: