From 8051d0e551cbb72667282f82ffd6086323afc400 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Wed, 23 Dec 2015 14:07:29 +0100 Subject: Ensure domain naming contexts are lists, not strings --- pykolab/auth/ldap/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.1