From: Vitaly K. <vi...@ti...> - 2000-06-10 10:12:19
|
Hello, I just downloaded the perl-ldap and try to use its functions. I have problem in following code: my $result = $ldap->moddn("cn=Tuzik,ou=People,o=tiogatech.com", newrdn => "cn=Ttuzzikk I"); if ($result->code) { print "Some error occured while moddn ... \n", ldap_error_name($result->code),":", ldap_error_text($result->code),"\n"; } I get error message: LDAP_ENCODING_ERROR:C<Net::LDAP> encountered an error while encoding the request packet that would have been sent to the server 1)Can you please help me ? What is wrong with this code? 2)Can I change dn "cn=Tuzik,ou=People,o=tiogatech.com" to dn "uid=12345,ou=People,o=tiogatech.com" with function moddn ? Thanks in advance! Vitaly |