2011-2012ForgeRock ASimport-ldif1OpenDJimport-ldifimport OpenDJ directory data from LDIFimport-ldifoptionsDescriptionThis utility can be used to import LDIF data into a directory server
backend.OptionsThe following options are supported.Append to an existing database rather than overwriting it.Path to a MakeLDIF template to use to generate the import
data.Base DN of a branch to include in the LDIF import.Base DN of a branch to exclude from the LDIF import.LDIF file is compressed.Count the number of entries rejected by the server and return that
value as the exit code (values > 255 will be reduced to 255 due to exit
code restrictions).Attribute to exclude from the LDIF import.Filter to identify entries to exclude from the LDIF import.Remove all entries for all base DNs in the backend before
importing.Attribute to include in the LDIF import.Filter to identify entries to include in the LDIF import.Path to the LDIF file to be imported.Backend ID for the backend to import.Overwrite an existing rejects and/or skip file rather than appending
to it.Replace existing entries when appending to the database.Write rejected entries to the specified file.Seed for the MakeLDIF random number generator.Default value: 0Skip schema validation during the LDIF import.Perform DN validation during later part of LDIF import.Write skipped entries to the specified file.Number of threads used to read LDIF file during import. Default
value (0) equals: 2 x (number of CPUs).Path to temporary directory for index scratch files during LDIF
import.Default value: import-tmpTask Backend Connection OptionsMaximum length of time (in milliseconds) that can be taken to
establish a connection. Use '0' to specify no time out.Default value: 30000DN to use to bind to the serverDefault value: cn=Directory ManagerDirectory server hostname or IP addressDefault value: localhost.localdomainBind password fileCertificate key store pathNickname of certificate for SSL client authenticationSASL bind optionsDirectory server administration port numberDefault value: 4444Certificate trust store pathCertificate trust store PINCertificate key store PIN fileCertificate trust store PIN filePassword to use to bind to the serverUse to have the command prompt for the
password, rather than enter the password on the command line.Certificate key store PINTrust all server SSL certificatesTask Scheduling OptionsEmail address of a recipient to be notified when the task
completes. This option may be specified more than once.ID of a task upon which this task depends. A task will not start
execution until all its dependencies have completed execution.Email address of a recipient to be notified if an error occurs
when this task executes. This option may be specified more than
once.Action this task will take should one if its dependent tasks fail.
The value must be one of PROCESS, CANCEL, DISABLE. If not specified
defaults to CANCEL.Indicates the task is recurring and will be scheduled according
to the value argument expressed in crontab(5) compatible time/date
pattern.Indicates the date/time at which this operation will start when
scheduled as a server task expressed in YYYYMMDDhhmmssZ format for UTC
time or YYYYMMDDhhmmss for local time. A value of '0' will cause the
task to be scheduled for immediate execution. When this option is
specified the operation will be scheduled to start at the specified
time after which this utility will exit immediately.Utility Input/Output OptionsNo properties file will be used to get default command line
argument valuesPath to the file containing default property values used for
command line argumentsGeneral OptionsDisplay version informationDisplay usage informationExit Codes0The command completed successfully.> 0An error occurred.ExamplesThe following example imports the content of the LDIF file,
Example.ldif, with the server offline.
$ import-ldif -b dc=example,dc=com -n userRoot -l /path/to/Example.ldif
[21/Jun/2011:13:38:03 +0200] category=RUNTIME_INFORMATION severity=NOTICE...
... msg=Import LDIF environment close took 0 seconds