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

Re: refresh the entire directory



i am doing something similar in my setup.

every night we are pulling data out of a postgres database which we use as
the "source of record" for all address and contact data collected in the
company. Our mechanism builds an LDIF file that contains the complete LDAP
database structure and all entries.

Our way of replacing the LDAP backend database is simply a script that does
the following:

* stop the slapd daemon
* rm -rf the contents of our backend database directory
* use slapadd to build a brand new ldap database from the LDIF file
* restart slapd

this way there is no real impact on the server because we don't go through
the server to rewrite the backend database, we just give it a brand new one.
the only really ugly piece is the code that builds the LDIF file... :)

jens


On 3/21/01 13:03, "Bing Du" <Bing-Du@cis-gw.tamu.edu> wrote:

> I'm just asking for opinions on refreshing the entire directory every
> day.
> 
> We receive the official datafeeds in the separate files every day.
> These datafeeds are used to update the directory.  They may or may not
> include personal information changes.  In order to keep updating the
> directory simple, we currently take the approach of overwriting every
> ldap entry using the information provided in the datafeeds regardless if
> the record is changed or not in the datafeeds.
> 
> Just want to know if this type of frequent bulk modifications would
> have any impact on the directory server?   Currently we have about
> 80,000 entries in the directory.
> 
> Any thoughts are appreciated.
> 
> Bing 
> 
> Bing Du <bing-du@tamu.edu, 979-845-9577>
> Texas A&M University, CIS, Operating Systems, Unix
>