[Freeipa-devel] [PATCH] 636 Properly handle multi-valued attributes when using setattr/addattr

Rob Crittenden rcritten at redhat.com
Wed Dec 8 18:31:17 UTC 2010


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

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-636-attr.patch
Type: text/x-patch
Size: 9132 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101208/adc04ec2/attachment.bin>


More information about the Freeipa-devel mailing list