summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-23 14:16:34 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-23 14:16:34 +0000
commit3dcfe802ed1533d928828b70ad0cb8656b450e49 (patch)
treeea2a1f381875fbda40d5839a2e81c1526c3b4560 /pykolab
parent5eb47567db404d424f8012ade2b5e07a468d99c2 (diff)
downloadpykolab-3dcfe802ed1533d928828b70ad0cb8656b450e49.tar.gz
Make sure that when aliases generated are compared to aliases existing, we compare accurately, not randomly
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 9198219..39e9c89 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -767,7 +767,7 @@ class LDAP(pykolab.base.Base):
if isinstance(entry[secondary_mail_attribute], basestring):
entry[secondary_mail_attribute] = list(set([entry[secondary_mail_attribute]]))
- if not secondary_mail_addresses == entry[secondary_mail_attribute]:
+ if not list(set(secondary_mail_addresses)) == list(set(entry[secondary_mail_attribute])):
self.set_entry_attribute(
entry,
secondary_mail_attribute,