In the immortal words of Jeremy Smith:
> I was using the Net::LDAP::LDIF to produce some LDIF's (obviously),
> and I was having trouble getting it to produce LDIF files in the modify
> format. After peeking around the source code, I worked my way around it
> via:
>
>
> $ldif = Net::LDAP::LDIF->new("file.ldif", "w");
> $ldif->{change} = 1; # force the change flag to be set
>
> # muck with a Net::LDAP::Entry object, $entry
>
> $ldif->write_entry($entry);
I was going to recommend write_cmd, but I see that it has been
deprecated "in favor of write_entry"; it now does exactly what you
have above.
%% Christopher A. Bongaarts %% [EMAIL PROTECTED] %%
%% Internet Services %% http://umn.edu/~cab %%
%% University of Minnesota %% +1 (612) 625-1809 %%