From: Mark W. <mew...@un...> - 2000-08-14 21:08:44
|
> > A ->diff() method would be cool: > > my $old_entry = $l->read( $dn ); > my $new_entry = $ldif->read(); > my $changes_entry = $old_entry->diff( $new_entry ); > $changes_entry->update( $l ); # Maps down to a ->modify() call I (and one other person on the list) started banging on a diff method a while back. The basics are easy. It's hard when you have a multivalued. The old entry contains: ou=people,untfs,acs and lets say the person changes jobs, but the ou update only reflects this new position change like this: ou=coe and let's say that the person who made the change wants the new entry to have an ou of: ou=people,untfs,coe how would you know in your diff to either replace the existing multi-value with the new single value, or to simply tag it on at the end? Mark |