[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [ldap] ldif question
- To: "LDAP mailing list" <openldap-general@OpenLDAP.org>
- Subject: Re: [ldap] ldif question
- From: "James M. Moe" <moe_jim@burr-brown.com>
- Date: Thu, 04 Feb 1999 09:27:54 -0700 (MST)
- In-reply-to: <LYR5327-4599-1999.02.03-23.33.58--moe_jim#burr-brown.com@listserver.itd.umich.edu>
On Wed, 03 Feb 1999 11:34:49 -0600, Shanthi Raman wrote:
> I have a requirement to compare two ldif files , one obtained by exporting
>data from the directory and the other one containing the latest data. I
>have to update the directory with these changes. The way I like to go about
>this is:-
>
> [ ... ]
>
>Like to hear your comments on the entry deletion. But more helpful will
>be if you can point me to a piece of existing code that does the comparison
>of attributes in each entry or any other advise on those lines.
There is no standard piece of code or program that will *easily* do the
comparisons for you. You gave no indication of the volume of data involved. If it's
fairly small, the tedium of manually comparing the entries is quickest.
If lots of data, you might be able to get "diff" to help out, if the latest data
file has complete entries, not just the new or changed parts. It would require that
the entries be in the same order.
Otherwise you will have to write your own processing program that can parse LDIF
files, identifying an entry in one file, searching for it in the other file, and
reporting any differences.
Or give the job to someone else...
Good luck.
Jim Moe