From 5d1d5138493b391c319e8d410b19ae7a8ab712f7 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 26 Feb 2013 11:49:01 +0100 Subject: Always use lists for values in LDAPEntry internally. Outside of LDAPEntry, it is still possible to use non-lists. Once we enforce lists for attribute values, this will be removed. https://fedorahosted.org/freeipa/ticket/3521 --- ipalib/plugins/baseldap.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins/baseldap.py') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 6d734d02..503696ef 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -922,6 +922,8 @@ last, after all sets and adds."""), raise errors.ValidationError(name=attr, error=err.error) except errors.ConversionError, err: raise errors.ConversionError(name=attr, error=err.error) + if isinstance(value, tuple): + value = list(value) entry_attrs[attr] = value else: # unknown attribute: remove duplicite and invalid values -- cgit