[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#9000) memberOf value is lost when group DN is modified with only case change



Le 05/06/2019 à 15:30, ondra@mistotebe.net a écrit :
> On Wed, Mar 27, 2019 at 04:39:14PM +0000, clement.oudot@worteks.com wrote:
>> Seems it is because memberof try to add the new value before deleting the old
>> one. As the values are the same when ignoring the case, the modification is
>> rejected.
>>
>> I would say that doing the LDAP_SLIST_REMOVE before the LDAP_SLIST_INSERT_HEAD
>> in memberof.c should be enough but I don't know if this is safe.
> Alternatively checking that the new DN is not equivalent to the old and
> if so, noop it? That's just been uploaded to
> https://github.com/mistotebe/openldap/tree/its9000


Seems indeed a better solution!


-- 
Clément Oudot | Identity Solutions Manager

clement.oudot@worteks.com

Worteks | https://www.worteks.com