Adding the Distribution Function to Your Directory150 Netscape Directory Server Plug-In Programmer’s Guide • August 2002You can create the root entry in two ways:• Import the same LDIF file into each database using the ldif2db command-lineutility.This LDIF file should contain the root entry as well as data that you want todistribute across the databases. Only the data determined by the distributionfunction to be appropriate for each database will be imported.• Create an LDIF file that contains the root entry. You can do this by exportingthe root entry (for example, o=example.com) in LDIF format using theldapsearch command-line utility.Then, import the LDIF file into each database using the ldif2db command-lineutility. If you have three databases for a single suffix, you need to import thesuffix entry three times.When a subtree search is performed above a suffix that is distributed amongseveral databases, the search will be performed on all databases. This means thatthe shared suffix entry that you create on each database (in the example,o=example.com) can be returned multiple times.Adding the Distribution Function to Your DirectoryTo declare the distribution function to your directory, your need to add multipledatabases to a single suffix and then declare the distribution function in the suffix.These procedures assume you have already created a suffix and associated it with asingle database. For the procedure on creating a new suffix and database, refer toChapter 2, “Creating Directory Entries,” in the Netscape Directory ServerAdministrator’s Guide.NOTE You need to add all of the databases required for your distributionalgorithm before you deploy entry distribution. You cannot addmore databases later without changing the algorithm.Whenever you install new distribution functions, be sure to restartthe Directory Server. Otherwise, the new libraries will not getloaded properly.