At 12:17 PM 8/12/2006, Peter Marschall wrote:
>Hi,
>
>On Monday, 7. August 2006 14:32, B.P.S. Rajaram wrote:
>> I simplyfied the code as below.
>> #------begin source
>> my $changeType = 'add';
>> foreach $entry ($src_result->all_entries())
>> {
>> $dest_entry = Net::LDAP::Entry->new;
>> $dest_entry = $entry->clone;
>> $logger->debug_message ( "Retrieved entry: '".$dest_entry->dn()."'");
>> #--- Updating Directory Server
>> $dest_entry->changetype ($changeType);
>> $result = $dest_entry->update ($dest_ldap);
>> $logger->debug_message ( "Updating with code: '".$result->error()."' code:
>> ".$result->code); }
>> #------end source
>> The error message i receive:
>> 7/8/06-14:26:24 main::add_entry_to_dest_ds 118 Updating with code:
>> 'Unexpected EOF' code: 1 Regards,
>> Bhagt Rajaram
>
>LDAP error code 1 is LDAP_OPERATIONS_ERROR
>meaning: Server encountered an internal error

I note that the standardized meaning is:
      operationsError (1)
         Indicates that the operation is not properly sequenced with
         relation to other operations (of same or different type)

For an internal error, the server should return:
      other (80)
         Indicates the server has encountered an internal error.

>(see Net::LDAP::Constant)

While some servers (including past versions of OpenLDAP) have
improperly returned various result codes, I suggest Net::LDAP
use/provides result code descriptions consistent with those
found in Appendix A.2 of RFC 4511.

>So it looks like a server-side problem.

I don't see any sequencing issues.

Kurt 

Reply via email to