On 9/12/03 4:06 pm, Benoit Plessis <[EMAIL PROTECTED]> wrote:

> 
> Hello,
> 
> I'm using Net::LDAP for handling a LDAP connection
> in some perl script and i'm quite pleased by is way of working.
> but actually i wan't to do something but i don't know how:
> could Net::LDAP::LDIF::write_entry() write only the 'changes' listed
> in the Net::LDAP::Entry passed in args ?

If you create the LDIF object with 'change' => 1 (or any other true value)
the LDIF file will contain change-records instead of entries. This doesn't
appear to be a documented option, which is probably just a documentation
error.

For example:

$ldif = Net::LDAP::LDIF->new("example.ldif", "w",
                             encode => 'base64',
                             change => 1);

Cheers,

Chris

Reply via email to