Two types of properties files are supported:
  • Default properties files that can be applied to all command-line utilities.
  • Tool-specific properties file that can be specified using the --propertiesFilePath option.


All of the server's command-line utilities can be overwritten using the config/ file.

Create a properties file with a text editor or using the standard Java properties file format (name=value). For example, create a simple properties file that defines a set of LDAP connection parameters as follows:
bindDN=cn=Directory\ Manager
Specify the location of the file using the --propertiesFilePath option. For example, specify the path to the properties file with ldapsearch as follows:
$ bin/ldapsearch --propertiesFilePath bin/ "(objectclass=*)"

Properties files do not allow quotation marks around values. Any spaces or special characters should be removed.