diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-12-08 13:26:27 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-12-10 13:42:47 -0500 |
commit | e8e274c9e0a9fb9d2ef775f99c763d97b23050b1 (patch) | |
tree | 74ce17aa1891f94c9d41d7c32e9bb70851964e74 /ipalib/config.py | |
parent | 1a20d754216bafb82aa40ea584c7de7c9a5b0b07 (diff) | |
download | freeipa-e8e274c9e0a9fb9d2ef775f99c763d97b23050b1.tar.gz freeipa-e8e274c9e0a9fb9d2ef775f99c763d97b23050b1.tar.xz freeipa-e8e274c9e0a9fb9d2ef775f99c763d97b23050b1.zip |
Properly handle multi-valued attributes when using setattr/addattr.
The problem was that the normalizer was returning each value as a tuple
which we were then appending to a list, so it looked like
[(u'value1',), (u'value2',),...]. If there was a single value we could
end up adding a tuple to a list which would fail. Additionally python-ldap
doesn't like lists of lists so it was failing later in the process as well.
I've added some simple tests for setattr and addattr.
ticket 565
Diffstat (limited to 'ipalib/config.py')
0 files changed, 0 insertions, 0 deletions