From: Graham B. <gb...@po...> - 2001-04-23 11:29:48
|
On Mon, Apr 23, 2001 at 12:01:22PM +0200, Roland Stigge wrote: > Hi, > > another one: > > I'm trying to modify: > > this works: > ----- > $mesg = $ldap->modify("cn=onemore,o=epigenomics", > replace => {'sn' => 'Jackson'}); > print "code: ",$mesg->code,"\nerror: ",$mesg->error,"\n"; > ----- > > but this way (another documented way for performing that): > ----- > # ... binding ... > > $entry = Net::LDAP::Entry->new; > $entry->dn("cn=onemore,o=epigenomics"); > $entry->replace("sn" => "Jackson"); > $mesg=$ldap->modify($entry); > print "code: ",$mesg->code,"\nerror: ",$mesg->error,"\n"; > ----- > > But: Adding a new user works this way. > > (using perl-ldap 0.22) Can you please try with 0.23 I seem to remember some bug fixes in this area. Graham. |