diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-10-14 13:05:43 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-10-18 14:44:42 -0400 |
commit | dff2ff830073c638582c3708cec422c47994f36a (patch) | |
tree | 80e88b3b87f64a9ab6ce8d4d0dd4444f3f272312 /ipalib/frontend.py | |
parent | 267e803cdfdb410cd00ba1e8435379b7112c057f (diff) | |
download | freeipa-dff2ff830073c638582c3708cec422c47994f36a.tar.gz freeipa-dff2ff830073c638582c3708cec422c47994f36a.tar.xz freeipa-dff2ff830073c638582c3708cec422c47994f36a.zip |
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
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 5486a19a5..473e2332e 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. |