summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/baseldap.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-05-04 10:34:00 -0400
committerMartin Kosek <mkosek@redhat.com>2012-05-09 09:43:35 +0200
commitd9d196798945bef7a955acb8b71820800455be17 (patch)
treefcdbbb63b26640f9255a264b62d53248e8e11ba1 /ipalib/plugins/baseldap.py
parentabef5e8c027bf37d9522f4d30e8e43c408251893 (diff)
downloadfreeipa-d9d196798945bef7a955acb8b71820800455be17.tar.gz
freeipa-d9d196798945bef7a955acb8b71820800455be17.tar.xz
freeipa-d9d196798945bef7a955acb8b71820800455be17.zip
Redo boolean value encoding.
Move the code for encoding boolean values to LDAP boolean syntax from the Parameter class to the Encoder class, where the rest of LDAP encoding takes place. Remove encoding code from the Parameter class altogether, as all LDAP encoding should be done in the Encoder class.
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r--ipalib/plugins/baseldap.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index e4f8cdc69..85a817231 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -933,12 +933,6 @@ 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)
- # FIXME: We use `force` when encoding because we know this is
- # an attribute, even if it does not have the `attribute` flag
- # set. This happens with no_update attributes, which are
- # not cloned to Update commands. This cloning is where the flag
- # gets set.
- value = param.encode(value, force=True)
entry_attrs[attr] = value
else:
# unknown attribute: remove duplicite and invalid values