Package org.opends.server.tools
Class ConfigureDS
- java.lang.Object
-
- org.opends.server.tools.ConfigureDS
-
public class ConfigureDS extends Object
This class provides a very basic tool that can be used to configure some of the most important settings in the Directory Server. This configuration is performed by editing the server's configuration files and therefore the Directory Server must be offline. This utility will be used during the Directory Server installation process.
The options that this tool can currently set include:
- The port on which the server will listen for LDAP communication
- The DN and password for the initial root user.
- The set of base DNs for user data
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intconfigMain(String[] args, OutputStream outStream, OutputStream errStream)Parses the provided command-line arguments and makes the appropriate changes to the Directory Server configuration.static voidmain(String[] args)Provides the command-line arguments to theconfigMainmethod for processing.static org.forgerock.i18n.LocalizableMessageunsupportedKeyWrappingTransformationWarning()Returns the warning to give when this Java runtime supports neither the default key wrapping transformation of the crypto manager nor an alternative to it: the server will then refuse to start until the administrator sets one.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Provides the command-line arguments to theconfigMainmethod for processing.- Parameters:
args- The set of command-line arguments provided to this program.
-
configMain
public static int configMain(String[] args, OutputStream outStream, OutputStream errStream)
Parses the provided command-line arguments and makes the appropriate changes to the Directory Server configuration.- Parameters:
args- The command-line arguments provided to this program.outStream- Output stream.errStream- Error stream.- Returns:
- The exit code from the configuration processing. A nonzero value indicates that there was some kind of problem during the configuration processing.
-
unsupportedKeyWrappingTransformationWarning
public static org.forgerock.i18n.LocalizableMessage unsupportedKeyWrappingTransformationWarning()
Returns the warning to give when this Java runtime supports neither the default key wrapping transformation of the crypto manager nor an alternative to it: the server will then refuse to start until the administrator sets one. The installer calls this itself, since whatconfigMainwrites while it runs under setup reaches the setup log only.- Returns:
- The warning, or
nullwhen the runtime supports a transformation.
-
-