--On Friday, October 13, 2017 6:06 PM +0200 richard lucassen mailinglists@lucassen.org wrote:
How do I tell ldapmodify just to delete 1 particular item with AttributeValue=X, and not all of them?
You do a delete+add, just like Dieter said. What you did in your example was a replace op.
I.e., you'd do something like:
dn: <whatever> changetype: modify delete: mail mail: my-value - add: mail mail: my-value
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
On Fri, 13 Oct 2017 08:10:44 -0700 Quanah Gibson-Mount quanah@symas.com wrote:
How do I tell ldapmodify just to delete 1 particular item with AttributeValue=X, and not all of them?
You do a delete+add, just like Dieter said. What you did in your example was a replace op.
I.e., you'd do something like:
dn: <whatever> changetype: modify delete: mail mail: my-value
add: mail mail: my-value
Ah, ok, the manpage does not provide this information. There is just a "replace" example.
Thnx to the both of you!
R.
openldap-technical@openldap.org