[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [ldapmodify] multiple entries of the same attibute
- To: openldap-technical@openldap.org
- Subject: Re: [ldapmodify] multiple entries of the same attibute
- From: "Ralf Mattes" <rm@mh-freiburg.de>
- Date: Fri, 13 Oct 2017 17:16:00 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mh-freiburg.de; s=mail; t=1507907761; bh=kp4TXiUSaJIZHPhOrB0VztM4dmbRoastB2IWhNKNCw8=; h=In-Reply-To:To:From:Subject:Date:From; b=tY+ufhtSS5KyvCc7kUKQqgK+YDpTCxndFGKtn9nfUxzPu8WcfsKDPXq0xn+EQS0yC o9WALv8fckWyQhlomGfY5lfEFsI82y8KkfmyLW5vwvSkVUDfenQdRcwPrNbQ3gs91e DLa3lgBmlhIdQvVNRnVbXayoOeYf0RAlkHEpRhYc=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mh-freiburg.de; s=mail; t=1507907760; bh=wUF2HZroWxu3d5mtmWJc5TfaTUYcVDst+wlQKk8XkFg=; h=In-Reply-To:To:From:Subject:Date:From; b=AB2qHmkWfs7eg2ysO5Kc0z9x7McfSI3v5t0RVJI0gLO0fh4A5rQ9oF54m7kYUGR6Z cFOhNUMwHuNMhd3K+qXTIjBqgNcKpj7CoGdHlc2oBL3Sv4Wc0Ci3flv4PcqRt1J5Da vbl83UUP1rqcR501sYWgvfwri/Ju5cAj8v3hW1Bw=
- In-reply-to: <20171013170615.366a2e7ec0232e1f01ac2edb@lucassen.org>
- User-agent: SOGoMail 2.3.20
Am Freitag, 13. Oktober 2017 17:06 CEST, richard lucassen <mailinglists@lucassen.org> schrieb:
> On Fri, 13 Oct 2017 14:29:23 +0200
> "Ralf Mattes" <rm@mh-freiburg.de> wrote:
>
> > > mail: user1@example.com
> > > mail: user2@example.com
> > > mail: user3@example.com
> > >
> > > Is there a way to tell ldapmodify to change just a particular entry?
> >
> > A change of a single value equals a delete of that value plus an add
> > of the new value, doesn't it?
>
> Yep, but ldapmodify deletes *all* "mail:" entries. If I tcpdump the
> stream of a jxplorer session, I see a modify request, which consists of
> indeed a delete and an add. But the "delete" has an attribute value:
Off course, that was my whole point - you need to delete the value you want to
modify, then add the new value.
> +modification: 2 items
> +modification: item
> operation: delete (1)
> + modification: mail
> type: mail
> + vals: 1 item
> AttributeValue: user2@example.com
> operation: add (0)
> + modification: mail
> type: mail
> + vals: 1 item
> AttributeValue: otheruser@example.com
>
> How do I tell ldapmodify just to delete 1 particular item with
> AttributeValue=X, and not all of them?
changetype: modify
delete: <attribute name>
<attribute name>: <attribute value>
HTH, Ralf Mattes
>
> R.
>
> --
> richard lucassen
> http://contact.xaq.nl/
>