Instalacja OpenDJ

Sorry, this entry is only available in Polish. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Pobieramy i rozpakowujemy najnowszą wersję OpenDJ ze strony
Po rozpakowaniu znajdziemy katalog OpenDJ-ver, gdzie jest numerem wersji oczywiście, ja użyję najnowszej na chwilę obecną czyli 2.4.3

# cd /data/var
# unzip
# cd OpenDJ-2.4.3

Uruchamiamy instalację:

# ./setup --cli

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

What would you like to use as the initial root user DN for the Directory
Server? [cn=Directory Manager]: cn=dirmgr
Please provide the password to use for the initial root user: 
Please re-enter the password for confirmation: 

On which port would you like the Directory Server to accept connections from
LDAP clients? [389]: 

On which port would you like the Administration Connector to accept
connections? [4444]: 
Do you want to create base DNs in the server? (yes / no) [yes]: 

Provide the base DN for the directory data: [dc=example,dc=com]: dc=domain,dc=tld
Options for populating the database:

    1)  Only create the base entry
    2)  Leave the database empty
    3)  Import data from an LDIF file
    4)  Load automatically-generated sample data

Enter choice [1]: 

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

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

    1)  Generate self-signed certificate (recommended for testing purposes
    2)  Use an existing certificate located on a Java Key Store (JKS)
    3)  Use an existing certificate located on a JCEKS key store
    4)  Use an existing certificate located on a PKCS#12 key store
    5)  Use an existing certificate on a PKCS#11 token

Enter choice [1]: 
Provide the fully-qualified host name or IP address that will be used to
generate the self-signed certificate [ldapdj1]: 

Do you want to start the server when the configuration is completed? (yes /
no) [yes]: 

Setup Summary
LDAP Listener Port:            389
Administration Connector Port: 4444
LDAP Secure Access:            Enable StartTLS
                               Create a new Self-Signed Certificate
Root User DN:                  cn=dirmgr
Directory Data:                Create New Base DN dc=domain,dc=tld.
Base DN Data: Only Create Base Entry (dc=domain,dc=tld)

Start Server when the configuration is completed

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 /var/tmp/opends-setup-2524007990788292027.log for a detailed log of this operation.

Configuring Directory Server ..... 

Configuring Certificates ..... Done.
Creating Base Entry dc=domain,dc=tld ..... Done.
Starting Directory Server ............. Done.

To see basic server configuration status and configuration you can launch /data/var/OpenDJ-2.4.3/bin/status

Sprawdźmy więc status, czy serwer jest uruchomiony:

# /data/var/OpenDJ-2.4.3/bin/status

>>>> Specify OpenDS LDAP connection parameters

Administrator user bind DN [cn=Directory Manager]: cn=dirmgr

Password for user 'cn=dirmgr': 

          --- Server Status ---
Server Run Status:        Started
Open Connections:         1

          --- Server Details ---
Host Name:                ldapdj1
Administrative Users:     cn=dirmgr
Installation Path:        /data/var/OpenDJ-2.4.3
Version:                  OpenDJ 2.4.3
Java Version:             1.6.0_25
Administration Connector: Port 4444 (LDAPS)

          --- Connection Handlers ---
Address:Port : Protocol               : State
--           : LDIF                   : Disabled  : SNMP                   : Disabled  : LDAP (allows StartTLS) : Enabled  : LDAPS                  : Disabled : JMX                    : Disabled

          --- Data Sources ---
Base DN:     dc=domain,dc=tld
Backend ID:  userRoot
Entries:     1
Replication: Disabled

Ze statusu wynika, że serwer działa, słucha na porcie 389 i posiada jeden wpis. Replikacja nie jest skonfigurowana.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.