Love your quote text, btw ("In the immortal words of...")...
Unfortunately, this doesn't work either, and I had already tried it (see my
original post). Using the lines
$mesg = $entry->update($ldap);
$mesg->code && die $mesg->error;
Produces no errors, yet nothing in the directory gets changed. I'm uncertain
why that's the case. I have stepped through it using ptkdb, but I'm not
following the action very well.
I'm still looking for suggestions... :(
Ed
Christopher A Bongaarts wrote:
> In the immortal words of Ed Miller:
>
>> The following code attempts to loop through the $ldif file, getting one
>> Entry at a time and performing the changes contained in that Entry
>> object on the $ldap server. Here was my first stab:
>>
>> while (my $entry = $ldif->read_entry())
>> {
>> $mesg = $ldap->modify($entry); ## THE ACTION LINE
>> $mesg->code && die $mesg->error;
>> }
>
> You're using the wrong method... try this instead:
>
> $mesg = $entry->update($ldap);
>
> %% Christopher A. Bongaarts %% [EMAIL PROTECTED] %%
> %% Internet Services %% http://umn.edu/~cab %%
> %% University of Minnesota %% +1 (612) 625-1809 %%
>