Loading Sample Data

In this section we'll show you how to initialize the directory information tree (DIT), then we'll load some sample data by running a batch file called LoadLDIFs.bat. We assume you've successfully configured the Directory Server in the previous section.

There are 4 steps in this procedure.

The information stored in o=MDSconfig is similar to the kind of information stored in o=netscape.root by other Netscape servers. Future version of Meta-Directory will use o=netscape.root.

When you see the little red dot next to one of the tabs in the Console window, that means you've selected some changes to be made but you haven't committed them yet. After you click Save the red dots will go away.

Step 1: Create 3 new suffixes

Directory suffixes can be thought of as the tops of the trees where we'll put our MetaView and our ConnectorViews. We'll also create a suffix for configuration information used by Meta-Directory.

Click on the Settings tab, then the Add button.

Create 3 new entries one at a time by using the Add button:

  • o=company.com
  • o=ConnectorViews
  • o=MDSconfig

When you're finished your window should look like this:

You'll need to click on Save to commit these changes.

If you installed the Directory Server on drive D and set the Directory Manager's password to "dirmanager" then you can skip this step.

Step 2: Edit the LoadLDIFs batch file (if necessary)

For purposes of this course, we're going to populate our directory trees with sample data containing fictitious names and phone numbers. We'll load the sample data by running a batch file that came with the Meta-Directory demonstration software, LoadLDIFs.bat. This file should be located in the temp folder where you unzipped the sample data in demo.zip.

Before you run the batch file you'll need to check the location of the ldapmodify command on your system. You may need to edit the batch file to match this location. The ldapmodify command should be located in drive:\Netscape\Server4\shared\bin, where drive is the drive letter you specified during installation.

You'll also need to make sure the password for the Directory Manager matches the one in the batch file. If you used anything other than "dirmanager" you'll need to do a search & replace for "-w dirmanager" and replace this string with "-w " followed by the password you used.

In the example shown below, the drive letter has been changed to E because that's where the Directory Server was installed on this system. Be sure to make this change to all statements that use the ldapmodify command.

If you installed the Directory Server on drive D: and specified a Directory Manager's password of "dirmanager", you won't need to edit LoadLDIFs.bat.

@ echo off
rem Initialize Directory Trees
rem includes o=company.com (where MetaView will be stored)
rem includes o=MDSconfig (where all configuration ...
rem includes o=ConnectorViews (where all connectors will sync to)
echo Initialize Directory Trees
E:\netscape\server4\shared\bin\ldapmodify ...

rem Load the Oblix loaded o=company.com MV data
rem also contains typical company org hierarchy
Echo Load the MetaView
E:\netscape\server4\shared\bin\ldapmodify ...
...


The LoadLDIFs batch file will create 120 entries in each of 5 ConnectorViews. The time required to create these 600 entries will depend on the speed of your system.

On most Pentium 2 systems this will take about 2 or 3 minutes.

Step 3: Run LoadLDIFs.bat

Double-click on the icon for LoadLDIFs.bat. This file should be located in the temporary folder where you unzipped the sample data.

This batch file will create empty directory trees which will then be populated with our sample data. When you run this file a new command window will appear and you'll see the results of the ldapmodify command as it adds the sample data.

When it finishes you'll see the message "Press any key to continue...", so press any key.


Step 4: Verify the ConnectorViews

Click on the Directory tab in the Directory Console window to confirm the new ConnectorViews have been added. Double-click on one of these new ConnectorViews to make sure there are 120 entries in it.

Use the Refresh function under the View menu to update the view of the directory tree topology. You should now be able to see the 3 new suffixes you created in Step 1.

If you expand the ConnectorViews icon, you should see the names of 6 new ConnectorViews.


Summary

In this section we created 3 new suffixes in our directory database:

  • company.com - this is where our MetaView will reside
  • ConnectorViews - this is where our 6 ConnectorViews will reside
  • MDSconfig - this is where Meta-Directory will store its configuration information

We then ran a batch file which created and populated 6 ConnectorViews:

  • Facilities
  • HR
  • Messaging
  • PBX
  • Security
  • NOS

In the next section we'll install the administrative interface to Meta-Directory.

Top of Page
Copyright © 2000
Sun-Netscape Alliance.