Previous Topic: DXrename Tool—Change the Name of a Directory Entry

Next Topic: DXsearch Tool—Search a Directory

DXschemaldif Tool—Extract the Schema from an LDAP Directory

Use the DXschemaldif tool to extract the schema from an external LDAP directory. The schema is extracted into LDIF format, and can be directed to the screen or a file.

This command has the following format:

dxschemaldif [-v] [options] hostaddr:port [> filename]
options

Denotes one or more of the following options:

-D binddn

Specifies the bind DN. If you don't specify the bind DN, the tool will bind anonymously.

-v

Runs in verbose mode.

-w password

Specifies the password (for simple authentication only).

hostaddr:port

Specifies the host address and port of the LDAP server (such as DXserver).

> filename

Redirect the output from the screen to the named file.

Note: To get help on the tool, enter the command dxschemaldif with neither options nor parameter.

Example: Extract Schema from V3 LDAP

To extract the schema from a Version 3 LDAP directory and redirect the output to the new_schema.ldif file, enter the following command:

dxschemaldif -v ldapserver:389 > new_schema.ldif

You can use the ldif2dxc tool to convert the LDIF schema into the CA Directory schema format.