On Tue, Oct 30, 2012 at 12:55:55PM +0100, Pavel Březina wrote:
On 10/30/2012 11:11 AM, Sumit Bose wrote:
>On Fri, Oct 26, 2012 at 04:18:28PM +0200, Pavel Březina wrote:
>>On 10/25/2012 12:27 PM, Sumit Bose wrote:
>>>On Thu, Oct 18, 2012 at 01:11:00PM +0200, Pavel Březina wrote:
>>>>https://fedorahosted.org/sssd/ticket/1482
>>>
>>>
>>>... you add fullname to the user_attrs. Then sysdb_add_basic_user() will
>>>set fullname==gecos when it initially creates the user object in the
>>>cache, but it will be overwritten in the same transaction when
>>>sysdb_store_user() add all the user_attrs.
>>
>>Hi,
>>that's a good idea. I'm sending the patch. I did not test it though,
>>because I need to leave now. But it is pretty straightforward so I
>>hope it's OK.
>
>Can you use sysdb_attrs_get_string() instead of sysdb_attrs_get_el()?
>This would automatically cover the case where el->num_values != 1.
>
>bye,
>Sumit
Sure. Patch is attached.
Ack