Hi,

the problem seems to be that you want to write a change ldif format, not a full one? It looks as the constructor parameter change => 1 does this, but I haven't yet tested it:

my $ldif = Net::LDAP::LDIF->new( file => ..., change => 1 );

My experience with ldifde comes from Win2000, and I didn't like the error handling and wasn't at all satisfied with it because it couldn't import special chars like umlauts or accents it exported from another AD because it lacked encoding the umlauts with base64 and so couldn't import objects that were exported with ldifde (but maybe ldifde got some improvements in the meantime). Another problem is that AD requires the charset of latin1 or cp1251 (or at least the user manager), and so it was necessary to convert everything.

I prefer working with ADSI by Win32::OLE because the error handling is much easier. You find a lot of examples for perl at http://techtasks.com/code/viewbook/2

Best regards,

Martin Fabiani

At 09:03 08.01.2008, you wrote:
Hi,

   We are currently using Net::LDAP::LDIF module to transfer infos
from an openldap server  to an AD ldap server. We are importing the
ldif using a Windows command called ldifde. Our problem is that
ldifde needs some formatting characters between each modification
using changetype: modify. It needs a single dash alone on a line
following the modified entry to work.
   Is there a clean way to do this with Net::LDAP::LDIF ? (I have
seen some dashes in the RFC but did not yet take time to read it
intensively).

Julien Garet
INRIA Lille

Software Engineering Martin Fabiani:
- Perl-Entwicklung
- Perl-Schulungen
- Metadirectories und Identity Management
- Datensynchronisierungen

mailto:[EMAIL PROTECTED]           / http://www.fabiani.net/
mailto:[EMAIL PROTECTED] / http://www.linux-services.org/
mailto:[EMAIL PROTECTED]      / http://www.perl-community.de/
mailto:[EMAIL PROTECTED]               / tel: +49-69-47885599
D-60385 Frankfurt                   / Roederbergweg 104

----------

Reply via email to