Hi,

On Monday, 9. June 2014 15:31:55 Chris Franz wrote:
> $cur_entry->replace('cn' => 'changedcn');
> $cur_entry->changetype(modify);
> $update_mesg = $cur_entry->update($ldap);
> $update_mesg->code && die $update_mesg->error;
>
> [...]
> 
> When I include the "$cur_entry->changetype(modify);" line, the script
> returns:
> 
> No attributes to update at ./ldap-update.pl line 23, <DATA> line 751.

Net::LDAP::Entry's changetype() method clears all previous changes when called 
with an argument.
Solution is simple: set the changetype first.

Best
Peter

-- 
Peter Marschall
pe...@adpm.de

Reply via email to