summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-23 12:14:59 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-23 12:14:59 +0200
commitc326af89b35567faa389c4f05e95f5ef2dc1fdd0 (patch)
tree4ba76b89649084c53be23305a0c735198475c4c8 /pykolab
parent88b6a39dd180968e5fc4fde1184d200db7fab1a0 (diff)
downloadpykolab-c326af89b35567faa389c4f05e95f5ef2dc1fdd0.tar.gz
Also catch the change in auth/ldap
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 1078525..06fb00d 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -536,7 +536,10 @@ class LDAP(pykolab.base.Base):
"""
List alias domain name spaces for the current domain name space.
"""
- return [s for s, p in self.secondary_domains.iteritems() if p == self.domain]
+ if not self.domains == None:
+ return [s for s in self.domains.keys() if not s in self.domains.values()]
+ else:
+ return []
def recipient_policy(self, entry):
"""