[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: deleting values from multivalued attribute
- To: openldap-technical@openldap.org
- Subject: Re: deleting values from multivalued attribute
- From: Emmanuel Lecharny <elecharny@gmail.com>
- Date: Fri, 25 Mar 2011 18:24:45 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=B6qduRLHL+X6/8ZkL0e5HcO8AtD4z83fE9k2JJ7AunA=; b=s7efCTjVpIBInLeq9x823tYqk6rN2iBhUyeYipaeVl9QHMth/+VBAa9WHyd6n2Cq60 Y9zc5kKcakIXGUmjcMVgBolXtcEa5EK+kXSEtokqZejaoapafGku+AC3ERq0ejEgOYv0 wjwgdi1Mym734nweoW7ITivnwg3EquTeyRpnI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=SXMWTcpVpccXk0dkiq01eZlbGcLEMVVYicAYOYkmDi+4nbefjKE/Qct6urjkuAuueP XAR71ncDr4MM9bS+xJbYkRvg7r0jdPKcZrEA9sXtw7IBM9qfL/e9EZdiIY+C13JxmjCE Zgju0wjoxn6eKiRzCtKNPVx2VVmNEARle0qAU=
- In-reply-to: <4D8CC284.9080002@fct.unl.pt>
- References: <4D8CAC01.1060107@fct.unl.pt> <4D8CAE18.70708@gmail.com> <4D8CB86B.2010900@fct.unl.pt> <4D8CBC2C.40502@gmail.com> <4D8CC284.9080002@fct.unl.pt>
- User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
On 3/25/11 5:27 PM, Hugo Monteiro wrote:
I wonder if it's also possible to use the same approach but for
value modification. In brief evaluation, my guess is no, since the
ldif syntax doesn't provide any way to distinct between the value to
be replaced and the one to replace with.
I don't understand your question. The 'modify' operation applied on
an AT allows you to do whatever you want, assuming you give it the
right operation to apply. 'replace' will discard all the values and
replace them by the new values. Otherwise, 'delete' deletes some
specific values, and 'add' adds the ones you provide.
Isn't it enough ?
Aye, i understand it can be done through delete/add. My wondering was
about the possibility to perform the change using a single operation.
It *is* a single operation. It's the Modify operation, and it's
guaranteed to be executed as an atomic operation. Everything else is
pure semantic.
--
Regards,
Cordialement,
Emmanuel LÃcharny
www.iktek.com