[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
attribute value replace
Am I missing something here?? (Fully possible: apologies if so!)
If I have an entry with the attribute (e.g.) "email" and three separate
values for that attribute, and
then I subsequently perform an update to that entry using ldif
containing (for example):
changetype: modify
replace: email
email: fred.bloggs@hotmail.com
the net effect would be to replace all three of the pre-extant values
for "email" with the one value in the ldif.
I can't see any way of specifying that I want to replace a specific old
value for the "email" attribute with a specific replacement value: if
there is any chance that the attribute may have multiple values, the
only solution would appear to be to delete a specific unwanted value and
then add a replacement value. (There's an analogous issue in
Net::LDAP::modify.)
In practical terms, it's probably not a problem, so long as one
remembers to specify the delete and the add separately: however, it
might be nice if the LDIF syntax could be extended to e.g.:
changetype: modify
replace: email
email: <current_value>,<new_value>
so that the replacement could be aimed at an existing value.
Just a thought.