The dsconf command requires some options that you can preset by using environment variables. If you do not specify an option when using the command, or do not set the environment variable, the default setting is used. You can configure environment variables for the following options:
User bind DN. Environment variable: LDAP_ADMIN_USER. Default: cn=Directory Manager.
Password file for the user bind DN. Environment variable: LDAP_ADMIN_PWF. Default: Prompt for password.
Host name. Environment variable: DIRSERV_HOST. Default: local host.
LDAP port number. Environment variable: DIRSERV_PORT. Default: 389.
For more details, see the dsconf(1M) man page.