From dff2ff830073c638582c3708cec422c47994f36a Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 14 Oct 2010 13:05:43 -0400 Subject: Disallow RDN change and single-value bypass using setattr/addattr. When setting or adding an attribute wiht setatt/addattr check to see if there is a Param for the attribute and enforce the multi-value. If there is no Param check the LDAP schema for SINGLE-VALUE. Catch RDN mods and try to return a more reasonable error message. Ticket #230 Ticket #246 --- ipalib/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 5486a19a..473e2332 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -504,7 +504,7 @@ class Command(HasParam): a dictionary. The incoming attribute may be a string or a list. - Any attribute found that is also a param is silently dropped. + Any attribute found that is also a param is validated. append controls whether this returns a list of values or a single value. -- cgit