[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapmodify versus ldapadd

Following up to my own post, I think the best option is to construct
my LDIF file with a series of delete and add tuples.

For example:

dn: uid=abc,o=mydomain.com
changetype: delete

dn: uid=abc,o=mydomain.com
changetype: add
objectclass: top

Then I need to use ldapadd with the -c option, so if the delete
fails for a new entry, the LDIF file will continue to be loaded.

It's ugly, but I guess it will work (slowly.)

Anyone got a better idea?

        Paul Gillingwater
        Managing Director
 CSO Lanifex Unternehmensberatung 
 & Softwareentwicklung G.m.b.H.

E-mail:  paul@lanifex.com
Teleph:  +43(1)2198222-0
Fax:     +43(1)2198222-11
Mobile:  +43(699)1922 3085
Webhome: http://www.lanifex.com/
Address: Praterstrasse 60/1/2 
         A-1020 Vienna, Austria