summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-23 14:07:29 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-23 14:07:29 +0100
commit8051d0e551cbb72667282f82ffd6086323afc400 (patch)
treed30e1aa2ea65d10559e32ec99f0ca06b6f82fe97
parent1be9c02b5cd47a4a6eb2442e86412a4549d9c645 (diff)
downloadpykolab-8051d0e551cbb72667282f82ffd6086323afc400.tar.gz
Ensure domain naming contexts are lists, not strings
-rw-r--r--pykolab/auth/ldap/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 7840ea6..f0ce2f7 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2085,6 +2085,9 @@ class LDAP(pykolab.base.Base):
naming_contexts = attrs['namingcontexts']
+ if isinstance(naming_contexts, basestring):
+ naming_contexts = [ naming_contexts ]
+
log.debug(
_("Naming contexts found: %r") % (naming_contexts),
level=8