Once you've set up the directory, or have directed your program to communicate with an existing directory, what sort of information can you expect to find there?
The directory can be viewed as consisting of name-to-object bindings. That is, each object in the directory has a corresponding name. You can retrieve an object in the directory by looking up its name.
Also stored in the directory are attributes.
An object in the directory, in addition to having a name,
also has an optional set of attributes.
You can ask the directory for an object's attributes, 
as well as ask it to search for an object that
has certain attributes.
Step 3: Directory Schema
A schema specifies the types of objects that a directory may contain.
This tutorial populates the directory with entries, some of which
require special schema definitions.
To accommodate these entries,
you must first either turn off schema-checking in the
server or add the schema files that accompany this tutorial to the server.
Both of these tasks are typically performed by the directory
server's administrator.
This tutorial comes with two schema files that must be installed:
The format of these files is a formal description that possibly cannot be directly copied and pasted into server configuration files. Specifically, the attribute syntaxes are described in terms of RFC 2252.Different directory servers have different ways of configuring their schema. This tutorial includes some tools for installing the Java and CORBA schemas on directory servers that permit their schemas to be modified via the LDAP. Following is a list of tasks the tools can perform.
Follow the instructions in the accompanying README file to run these programs.
For example, using ldapmodify you could do (by plugging in appropriate values for the hostname, administrator DN (-D option), and the password):
ldapmodify -a -c -v -h hostname -p 389\
        -D "cn=Administrator, cn=users, dc=xxx, dc=xxx"\
        -w passwd -f tutorial.ldif
Installation Note: Namespace Setup. The entries in the tutorial.ldif file use the distinguished name (DN) "o=JNDITutorial" for the root naming context. If you have not configured your directory server to have "o=JNDITutorial" as a root naming context, then your attempt to import tutorial.ldif will fail. The easiest way to get around this problem is to add the DN of an existing root naming context to each "dn:" line in the tutorial.ldif file. For example, if your server already has the root naming context "dc=imc,dc=org", then you should change the line
dn: o=JNDITutorial
dn: o=JNDITutorial, dc=imc, dc=org
Installation Note: File Format. Depending on the operating system platform that you are using, you might need to edit tutorial.ldif so that it contains the correct newline characters for that platform. For example, if you find that tutorial.ldif contains Windows-style newline characters (CRLF) and you are importing this file into a directory server that is running on a Unix platform, then you need to edit the file and replace CRLF with LF. A symptom of this problem is that the directory server rejects all of the entries in tutorial.ldif.
Installation Note: Windows Active Directory.
objectclass: organizationalUnit
possible superiors: domainDNS
                    inetOrgPerson
                    organizaton
                    organizationalPerson
                    organizationalUnit
                    person
                    top
objectclass: groupOfUniqueNames
possible superiors: top
objectclass: inetOrgPerson
possible superiors: container
                    organizationalPerson
                    person
                    top