On 5/8/06 9:34, Giuoco, Aaron <[EMAIL PROTECTED]> wrote: > Hello all, > > I am trying to use Net::LDAP to move computer objects to a different OU in Win > 2003 Active Directory. My attempts to use the moddn() method always return > the error: > > ERROR: 00000057: LdapErr: DSID-0C090987, comment: Error in attribute > conversion operation, data 0, vece > > I call moddn() like so: > > my $message = $ldap->moddn( $entry->dn(), newrdn => $entry->dn(), deleteoldrdn > => 1, newsuperior => $newDN ); > > I don't change the rdn of the object, I just want to move it to a different > OU. > > Is moddn() the correct method to use for this opperation? Or is there a > function/method in Net::LDAP like the MoveHere method available through > Windows OLE? Thanks.
moddn() (aka ModifyDN) is the right method to use. The newrdn parameter is mandatory (even if you're just moving the entry to a new parent), and *must* be an RDN and not (like you're passing) a DN. So if you pass a more reasonable string to newrdn, it ought to work... Cheers, Chris