[SSSD] [PATCH] failover: Protect against empty host names

Dmitri Pal dpal at redhat.com
Mon Oct 15 14:41:50 UTC 2012


On 10/15/2012 10:04 AM, Michal Židek wrote:
> On 10/15/2012 03:47 PM, Dmitri Pal wrote:
>> On 10/15/2012 06:30 AM, Michal Židek wrote:
>>> Added new parameter to split_on_separator that allows to skip
>>> empty values.
>>>
>>> https://fedorahosted.org/sssd/ticket/1484
>>>
>>> Patch is in attachment.
>>>
>>> Michal
>>>
>>>
>>> _______________________________________________
>>> sssd-devel mailing list
>>> sssd-devel at lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>>
>>
>> I do not see the whole code in front of me.
>> Does it trim spaces? I mean does it handle values "a,,b" and "a , , b"
>> in the same way?
>>
>> -- 
>> Thank you,
>> Dmitri Pal
>>
>> Sr. Engineering Manager for IdM portfolio
>> Red Hat Inc.
>>
>>
>> -------------------------------
>> Looking to carve out IT costs?
>> www.redhat.com/carveoutcosts/
>>
>>
>>
>>
>> _______________________________________________
>> sssd-devel mailing list
>> sssd-devel at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>>
>
> Hello Dmitri,
> if parameters 'trim' and 'ignore_empty' are both set to 'true', then
> 'a,,b' and 'a, ,b'  give both the same result ("a" and "b" are stored
> to the list of strings and the empty value is ignored).
>
> Michal
Good, this is what I wanted to confirm.

-- 
Thank you,
Dmitri Pal

Sr. Engineering Manager for IdM portfolio
Red Hat Inc.


-------------------------------
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/






More information about the sssd-devel mailing list