[Freeipa-devel] [PATCH] 0211-0212 Make sure --raw option works for trust-add

Martin Babinsky mbabinsk at redhat.com
Mon Jul 18 10:06:44 UTC 2016


On 07/16/2016 12:50 PM, Alexander Bokovoy wrote:
> Hi,
>
>
> I had some time and was blocked by these bugs to do my tickets so I
> actually fixed these three problems that are assigned to Martin
> Babinsky. Hopefully, Martin wouldn't be offended by that. :)
>
> Note that this fix (patch 0211) has potential for a break but also
> introduces a correct behavior in my view as we should not really have
> non-lower cased keys in LDAP dictionaries in entry_to_dict() for both
> normal and --raw modes.
>
> ----- 0211
>
> Since commit a8dd7aa337f25abd938a582d0fcba51d3b356410 if IPA command
> is called with --raw option, a retrieved LDAP entry's attribute
> names aren't normalized to lower case when converting the entry
> to a dictionary. This breaks overall assumption that dictionary
> keys are in lower case.
>
> Partially fixes 'ipa trust-add --raw' issues.
>
> https://fedorahosted.org/freeipa/ticket/6059
>
> ----- 0212
>
> Make sure we display raw values for 'trust-add --raw' case.
>
> https://fedorahosted.org/freeipa/ticket/6059
>
>
>
>

Hi Alexander,

I am CC'ing Jan since I hope he knows why 
a8dd7aa337f25abd938a582d0fcba51d3b356410 was implemented in this way. I 
think there was a reason behind this decision and we should not revert 
it without further discussion.

I had the fix for trust-add ready on Friday but was unable to test it 
properly because of some issues with my VMs. I am attaching it for 
reference, since it is similar to your patch 212 but relies on 
attrs_list passed in to LDAP search in order to fetch lowercased attributes.

-- 
Martin^3 Babinsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0188-trust-add-handle-all-raw-options-properly.patch
Type: text/x-patch
Size: 3653 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160718/eabeca70/attachment.bin>


More information about the Freeipa-devel mailing list