JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Directory Server Enterprise Edition Administration Guide 11g Release 1 (11.1.1.5.0)
search filter icon
search icon

Document Information

Preface

Part I Directory Server Administration

1.  Directory Server Tools

2.  Directory Server Instances and Suffixes

Quick Procedure for Creating Server Instances and Suffixes

Creating and Deleting a Directory Server Instance

To Create a Directory Server Instance

To Delete a Directory Server Instance

Starting, Stopping, and Restarting a Directory Server Instance

To Start, Stop, and Restart Directory Server

To List All the Running Instances

To Stop the Running Instances

Creating Suffixes

To Create a Suffix

Disabling or Enabling a Suffix

To Disable then Enable a Suffix

Setting Referrals and Making a Suffix Read-Only

To Set Referrals to Make a Suffix Read-Only

Importing Data From an LDIF File

Initializing a Suffix

To Initialize a Suffix

To Load Sample Data in Directory Server Instance

Adding, Modifying, and Deleting Entries in Bulk

To Add, Modify and Delete Entries in Bulk

Deleting a Suffix

To Delete a Suffix

Compacting a Suffix

To Compact a Suffix Offline

Rewriting a Suffix

To Rewrite a Suffix

3.  Directory Server Configuration

4.  Directory Server Entries

5.  Directory Server Security

6.  Directory Server Access Control

7.  Directory Server Password Policy

8.  Directory Server Backup and Restore

9.  Directory Server Groups, Roles, and CoS

10.  Directory Server Replication

11.  Directory Server Schema

12.  Directory Server Indexing

13.  Directory Server Attribute Value Uniqueness

14.  Directory Server Logging

15.  Directory Server Monitoring

Part II Directory Proxy Server Administration

16.  Directory Proxy Server Tools

17.  Directory Proxy Server Instances

18.  LDAP Data Views

19.  Directory Proxy Server Certificates

20.  Directory Proxy Server Load Balancing and Client Affinity

21.  Directory Proxy Server Distribution

22.  Directory Proxy Server Virtualization

23.  Virtual Data Transformations

24.  Connections Between Directory Proxy Server and Back-End LDAP Servers

25.  Connections Between Clients and Directory Proxy Server

26.  Directory Proxy Server Client Authentication

27.  Directory Proxy Server Logging

28.  Directory Proxy Server Monitoring and Alerts

Part III Directory Service Control Center Administration

29.  Directory Service Control Center Configuration

Index

Importing Data From an LDIF File

You can import data to a Directory Server suffix in the following ways:


Note - The offline import (dsadm import) does not remove the changelog as the changelog data may still be in the suffix. At server start, replication decides if the changelog needs to be kept or not. Online import (dsconf import) decides straight away if changelog needs to be recreated or not.


The following table shows the differences between initializing a suffix and adding, modifying, and deleting entries in bulk.

Table 2-1 Comparison of Initializing a Suffix and Importing Data in Bulk

Domain of Comparison
Initializing Suffixes
Adding, Modifying, and Deleting Entries in Bulk
Content
Overwrites content
Does not overwrite content
LDAP operations
N/A
Add, modify, delete
Performance
Fast
Slower
Response to server failure
Atomic (all changes are lost after a failure)
Best effort (all changes made up to the point of the failure remain)
LDIF file location
Accessible from server
On client machine
Commands
If server is local and stopped:

dsadm import

If server is remote and running:

dsconf import

ldapmodify -B

Note - Bulk import using the ldapmodify -B command erases the existing entries under the target suffix.


Initializing a Suffix

Initializing a suffix overwrites the existing data in a suffix with the contents of an LDIF file that contains only entries for addition.

You must be authenticated as the Directory Manager or an Administrator to initialize a suffix.

When the server is running, only the Directory Manager and Administrators can import an LDIF file that contains a root entry. For security reasons, only these users have access to the root entry of a suffix, for example, dc=example,dc=com.

Before restoring suffixes involved in replication agreements, read Restoring Replicated Suffixes.

To Initialize a Suffix


Note -


You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.

To Load Sample Data in Directory Server Instance

Examples that use command-line tools depend on sample data residing under the dc=example,dc=com suffix of your directory.

You can set up part of the data that is required by creating a dc=example,dc=com suffix. You can then populate the suffix with entries from the install-path/dsee7/resources/ldif/Example.ldif file.

  1. Create a new Directory Server instance and start the instance.
    $ dsadm create -p port -P SSL-port instance-path
    $ dsadm start instance-path
  2. Read the Example.ldif file to find bind passwords needed in the examples.
  3. Create suffix and load the Example.ldif content into the directory by using the following commands:
    $ dsconf create-suffix -h localhost -p 1389 dc=example,dc=com
    $ dsconf import -h localhost -p 1389 \
    install-path/dsee7/resources/ldif/Example.ldif dc=example,dc=com

    For more information, see To Create a Directory Server Instance.

  4. Generate test data for examples by using the makeldif(1) command, as shown in the next step, and the following template:
    define suffix=dc=example,dc=com
    define maildomain=example.com
    
    branch: ou=test,[suffix]
    subordinateTemplate: person:100
    
    template: person
    rdnAttr: uid
    objectclass: top
    objectclass: person
    objectclass: organizationalPerson
    objectclass: inetOrgPerson
    givenName: <first>
    sn: <last>
    cn: {givenName} {sn}
    initials: {givenName:1}{sn:1}
    employeeNumber: <sequential>
    uid: test{employeeNumber}
    mail: {uid}@[maildomain]
    userPassword: auth{employeeNumber}{employeeNumber}
    telephoneNumber: <random>
    description: This is the description for {cn}.
  5. Create a test.template file and copy the template content, as shown above, into it. Use commands such as the following to generate the data in test.ldif and to load the content into the directory.

    Note - The test.template file must be created in the install-path/dsee7/dsrk/bin/example_files directory.


    $ cd install-path/dsee7/dsrk/bin/example_files
    $ ../makeldif -t test.template -o test.ldif
    Processing complete.
    101 total entries written.
    $ ../ldapmodify -a -c -D uid=hmiller,dc=example,dc=com -w - -f test.ldif
    Enter bind password:
    …

    If you read Example.ldif, you see that the password for hmiller is hillock.


    Note - This step is specific to the zip installation because the makeldif command is available only in the zip distribution.


Adding, Modifying, and Deleting Entries in Bulk

When you perform an ldapmodify operation, you are able to add, modify, or delete entries in bulk. Entries are specified in an LDIF file that contains update statements to modify or delete existing entries. This operation does not erase entries that already exist.

The changed entries may target any suffix that is managed by your Directory Server. As with any other operation that adds entries, the server will index all new entries as they are imported.

The ldapmodify command will import an LDIF file through LDAP and perform all operations that the file contains. Using this command you can modify data in all directory suffixes at the same time.

Before restoring suffixes involved in replication agreements, see Restoring Replicated Suffixes.

To Add, Modify and Delete Entries in Bulk


Note - All LDIF files that you import must use UTF-8 character-set encoding.

When importing an LDIF file, parent entries must either exist in the directory or be added first from the file.