|
|
Importing airiusplus.ldif into Netscape Directory Server - (Version 6.1)
Return to Netscape Directory Resources Home Page.
Introduction
This short article attempts to provide some of the steps I needed to complete in order to import
their sample database: "airiusplus.ldif".
For the purpose of this example, I installed the Netscape Directory Server with the Netscape
Server Root located on "/usr/netscape/servers" and have a Directory Server named "alex".
After filling out the "New Root Suffix" dialog, click "OK".
At this point, you can exit from the Netscape Console as it is no longer required.
For details about configuring and building these tools, refer to the article
Building Netscape LDAP Tools for Java - (Version 4.1.7 / LDAPSearch, LDAPModify, etc.)
After locating / building the LDAPModify application, use the following
to import the data:
"LDAP Programming with Java" published by Addison Wesley Longman, Inc. is a
complete guide about LDAP. The book uses the Netscape Directory Server (NDS) and
the Netscape LDAP SDK for all of the examples. Chapter 4 includes instructions for
setting up the Netscape Directory Server and sample database, o=Airius.com.
For importing the sample database, it indicates that if you use the Express Installation
method, that naming context (o=Airius.com) will already be setup
for you. This is not true and will require several manual steps.
Downloading the airiusplus.ldif File
Use the following link to download the latest sample database (LDIF File):
airiusplus.ldif
Starting the Netscape Console
Create a New Naming Context
# cd /usr/netscape/servers
# ./startconsole
After starting the Netscape Console, ensure you are on the "Servers and Applications"
tab. From the "Default View", double-click (Open) your "Directory Server".
This will bring up the "Netscape Directory Server" window for your directory server.
Click on the "Configuration" tab and then expand and single click the "Data" item. Right-click on
the "Data" item and select "New Root Suffix". In this example, I am going to create
a new Naming Context for the Airius.com organization database as follows:
Import the File

The Netscape Directory SDK for Java includes several tools that can be used to
use with an LDAP directory:
# java LDAPModify -c -a -h ldap.idevelopment.info -D "cn=Directory Manager" -w "<your_password>" -f "airiusplus.ldif"
adding new entry o=airius.com
adding new entry ou=Groups, o=airius.com
adding new entry cn=Directory Administrators, ou=Groups, o=airius.com
adding new entry ou=People, o=airius.com
adding new entry ou=Special Users,o=airius.com
adding new entry uid=scarter, ou=People, o=airius.com
adding new entry uid=tmorris, ou=People, o=airius.com
adding new entry uid=kvaughan, ou=People, o=airius.com
. . . SNIP . . .
adding new entry uid=jvedder, ou=People, o=airius.com
adding new entry cn=Accounting Managers,ou=groups,o=airius.com
adding new entry cn=HR Managers,ou=groups,o=airius.com
adding new entry cn=QA Managers,ou=groups,o=airius.com
adding new entry cn=PD Managers,ou=groups,o=airius.com
adding new entry ou=Netscape Servers,o=airius.com
Last modified on: Saturday, 18-Sep-2010 17:23:18 EDT
Page Count: 5230