description-dsconfig.xml revision 73adb2e3dbaa8a9f6448cefccb7933f68c3c7348
<?xml version="1.0" encoding="UTF-8"?>
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
! or http://forgerock.org/license/CDDLv1.0.html.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at legal-notices/CDDLv1_0.txt.
! If applicable, add the following below this CDDL HEADER, with the
! fields enclosed by brackets "[]" replaced with your own identifying
! information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2015 ForgeRock AS.
!
-->
<!--
This use of <informalexample> is mild tag abuse.
It serves as a single container element for all the elements here.
-->
<informalexample
xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://docbook.org/ns/docbook
http://docbook.org/xml/5.0/xsd/docbook.xsd'>
<para>
The <command>dsconfig</command> command is the primary command-line tool
for viewing and editing OpenDJ configuration.
When started without arguments,
<command>dsconfig</command> prompts you for administration connection information,
including the host name, administration port number,
administrator bind DN and administrator password.
The <command>dsconfig</command> command then connects securely
to the directory server over the administration port.
Once connected it presents you with a menu-driven interface to the server configuration.
</para>
<para>
When you pass connection information, subcommands, and additional options
to <command>dsconfig</command>,
the command runs in script mode and so is not interactive,
though it can prompt you to ask whether to apply changes
and whether to trust certificates
(unless you use the <option>--no-prompt</option>
and <option>--trustAll</option> options, respectively).
</para>
<para>
You can prepare <command>dsconfig</command> batch scripts
by running the tool with the <option>--commandFilePath</option> option
in interactive mode,
then reading from the batch file with the <option>--batchFilePath</option> option
in script mode.
Batch files can be useful when you have many <command>dsconfig</command> commands to run
and want to avoid starting the JVM and setting up a new connection for each command.
</para>
<para>
The <command>dsconfig</command> command categorizes
directory server configuration into <firstterm>components</firstterm>,
also called <firstterm>managed objects</firstterm>.
Actual components often inherit from a parent component type.
For example, one component is a Connection Handler.
An LDAP Connection Handler is a type of Connection Handler.
You configure the LDAP Connection Handler component
to specify how OpenDJ directory server handles LDAP connections
coming from client applications.
</para>
<para>
Configuration components have <firstterm>properties</firstterm>.
For example, the LDAP Connection Handler component has properties
such as <literal>listen-port</literal> and <literal>allow-start-tls</literal>.
You can set the component's <literal>listen-port</literal> property
to <literal>389</literal> to use the default LDAP port number.
You can set the component's <literal>allow-start-tls</literal> property
to <literal>true</literal> to permit LDAP client applications to use StartTLS.
Much of the configuration you do with <command>dsconfig</command>
involves setting component properties.
</para>
</informalexample>