Author Topic: copy from 1 ldap book to another  (Read 2757 times)

Offline mario.almeida

  • Newbie
  • *
  • Posts: 3
copy from 1 ldap book to another
« on: September 23, 2008, 01:50:44 AM »
Hi,

when i tried to copy address from one ldap address book location to another was not able to do so.

Then i had to modify the below file
program/steps/addressbook/copy.inc

and changed the following

FROM THIS

$success = $TARGET->insert( $CONTACTS->search( $CONTACTS->primary_key, $cid ) );

TO THIS

$ids = explode( ',', $cid );
foreach ( $ids as $id )
{
  $record = $CONTACTS->search( $CONTACTS->primary_key, $id );
  $success[$id] = $TARGET->insert( $record->records[0], true );
}

Don't know if that is right,

if someone had the same issue then please let me know how to rectify it.

Regards,
Remy