go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  OpenDJ Command Line Usage Examples
 
Subject: OpenDJ Command Line Usage Examples
Author: eLDAP
Posted on: 08/17/2011 08:07:07 PM

Starting point: Download openDJ-version.zip and unzip it into any folder.



Example 1. setup -- Installs and configures an OpenDJ instance.


C:\tmp\OpenDJ-2.4.3>setup --cli --doNotStart -p 389 --adminConnectorPo
rt 4444 -D "cn=Directory Manager" -w password -b dc=example,dc=com -a

OpenDJ 2.4.3
Please wait while the setup program initializes...

Do you want to enable SSL? (yes / no) [no]:

Do you want to enable Start TLS? (yes / no) [no]:

Enable the server to run as a Windows Service? (yes / no) [no]:


Setup Summary
=============
LDAP Listener Port:            389
Administration Connector Port: 4444
LDAP Secure Access:            disabled
Root User DN:                  cn=Directory Manager
Directory Data:                Create New Base DN dc=example,dc=com.
Base DN Data: Only Create Base Entry (dc=example,dc=com)

Do not start Server when the configuration is completed
Do not enable the server to run as a Windows Service


What would you like to do?

    1)  Set up the server with the parameters above
    2)  Provide the setup parameters again
    3)  Print equivalent non-interactive command-line
    4)  Cancel and exit

Enter choice [1]:

See C:\tmp\AppData\Local\Temp\opends-setup-8557193669937784914.log for
 a detailed log of this operation.

Configuring Directory Server ..... Done.
Creating Base Entry dc=example,dc=com ..... Done.

To see basic server configuration status and configuration you can launch C:\tmp
\OpenDJ-2.4.3\bat\status.bat



Note: The setup command can only be executed once.

If you try to run it the second time,

C:\tmp\OpenDJ-2.4.3>setup --cli --doNotStart -p 389 --adminConnectorPo
rt 4444 -D "cn=Directory Manager" -w password -b dc=example,dc=com -a


here is what you may get:

Server Already Configured
setup.bat command-line can only be used with servers that have not yet been
configured.  The current server:
- Contains data
- Has already been configured


Replies:


References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.