summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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