On Jan 9, 2011, at 13:27 , Peter Marschall wrote: > Hi, > > I always found it quite annoying that one needs two different > objects/methods when writing a Net:LLDAP:Entry to either a directory server > or an LDIF file. > With directory servers you can do > $entry->update($ldap) > while with LDIF you need > $ldif->write_entry($entry) > > This always requires a distinction in the code path in the perl scripts > although LDIF makes a nice output when doing a "dry run", and Perl > should be able to do the RightThing(tm). > > I have attached a patch that extends Net::LDAP::Entry->update > by accepting an Net::LDAP::LDIF object as a parameter too. > > It would be great if this patch would make it into the next release > of perl-ldap.
Thanks, I have added to the git repository to be included in the next release Graham.