How to install zimbra ldap

in this post, to use zimbra 8.6."How to install zimbra ldap". To prepare the package for install zimbra ldap via to How to install and configure zimbra multi server. To step by step as the below:
How to install zimbra ldap





Download and install the zimbra open source
#wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz -O zimbra-8.6.0_GA.tgz
#tar zxvf zimbra-8.6.0_GA.tgz
#cd zimbra-8.6.0_GA
# ./install.sh

The output

Operations logged to /tmp/install.log.1228
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html

Do you agree with the terms of the software license agreement? [N] Y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nc-1.84-24
     FOUND: sudo-1.8.6p3-24
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-10
     FOUND: libaio-0.3.107-10
     FOUND: libstdc++-4.4.7-17
     FOUND: unzip-6.0-4
Checking for suggested prerequisites...
     FOUND: perl-5.10.1
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy

Select the packages to install
Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] N
Install zimbra-mta [Y] N
Install zimbra-dnscache [N] N
Install zimbra-snmp [Y] N
Install zimbra-store [Y] N
Install zimbra-apache [Y] N
Install zimbra-spell [Y] N
Install zimbra-memcached [Y] N
Install zimbra-proxy [Y] N
Checking required space for zimbra-core
Installing:
    zimbra-core
    zimbra-ldap
The system will be modified.  Continue? [N] Y
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Server.
Installing packages
    zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
Operations logged to /tmp/zmsetup11242016-211154.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for ldap.huuphan.local
It is suggested that the domain name have an MX record configured in DNS
Re-Enter domain name? [Yes] Y
Create domain: [ldap.huuphan.local] huuphan.local
done.
Checking for port conflicts
Main menu
   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   s) Save config to file
   x) Expand menu
   q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) x

Main menu
   1) Common Configuration:
        +Hostname:                             ldap.huuphan.local
        +Ldap master host:                     ldap.huuphan.local
        +Ldap port:                            389
        +Ldap Admin password:                  set
        +Secure interprocess communications:   yes
        +TimeZone:                             Asia/Bangkok
        +IP Mode:                              ipv4
        +Default SSL digest:                   sha256
   2) zimbra-ldap:                             Enabled
        +Create Domain:                        yes
        +Domain to create:                     huuphan.local
        +Ldap root password:                   set
        +Ldap replication password:            set
        +Ldap postfix password:                set
        +Ldap amavis password:                 set
        +Ldap nginx password:                  set
        +Ldap Bes Searcher password:           set
   c) Collapse menu
   s) Save config to file
   q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) 1

Common configuration
   1) Hostname:                                ldap.huuphan.local
   2) Ldap master host:                        ldap.huuphan.local
   3) Ldap port:                               389
   4) Ldap Admin password:                     set
   5) Secure interprocess communications:      yes
   6) TimeZone:                                Asia/Bangkok
   7) IP Mode:                                 ipv4
   8) Default SSL digest:                      sha256
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): [qXlz7nS6p] 123456789
Common configuration
   1) Hostname:                                ldap.huuphan.local
   2) Ldap master host:                        ldap.huuphan.local
   3) Ldap port:                               389
   4) Ldap Admin password:                     set
   5) Secure interprocess communications:      yes
   6) TimeZone:                                Asia/Bangkok
   7) IP Mode:                                 ipv4
   8) Default SSL digest:                      sha256
Select, or 'r' for previous menu [r] r
Main menu
   1) Common Configuration:
        +Hostname:                             ldap.huuphan.local
        +Ldap master host:                     ldap.huuphan.local
        +Ldap port:                            389
        +Ldap Admin password:                  set
        +Secure interprocess communications:   yes
        +TimeZone:                             Asia/Bangkok
        +IP Mode:                              ipv4
        +Default SSL digest:                   sha256
   2) zimbra-ldap:                             Enabled
        +Create Domain:                        yes
        +Domain to create:                     huuphan.local
        +Ldap root password:                   set
        +Ldap replication password:            set
        +Ldap postfix password:                set
        +Ldap amavis password:                 set
        +Ldap nginx password:                  set
        +Ldap Bes Searcher password:           set
   c) Collapse menu
   s) Save config to file
   q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) 2

Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 4
Password for ldap root user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 5
Password for ldap replication user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 6
Password for ldap Postfix user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 7
Password for ldap Amavis user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 8
Password for ldap Nginx user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 9
Password for ldap BES user (min 6 characters): [qXlz7nS6p] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap root password:                      set
   5) Ldap replication password:               set
   6) Ldap postfix password:                   set
   7) Ldap amavis password:                    set
   8) Ldap nginx password:                     set
   9) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] r
Main menu
   1) Common Configuration:
        +Hostname:                             ldap.huuphan.local
        +Ldap master host:                     ldap.huuphan.local
        +Ldap port:                            389
        +Ldap Admin password:                  set
        +Secure interprocess communications:   yes
        +TimeZone:                             Asia/Bangkok
        +IP Mode:                              ipv4
        +Default SSL digest:                   sha256
   2) zimbra-ldap:                             Enabled
        +Create Domain:                        yes
        +Domain to create:                     huuphan.local
        +Ldap root password:                   set
        +Ldap replication password:            set
        +Ldap postfix password:                set
        +Ldap amavis password:                 set
        +Ldap nginx password:                  set
        +Ldap Bes Searcher password:           set
   c) Collapse menu
   s) Save config to file
   q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.2900]
Saving config in /opt/zimbra/config.2900...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup11242016-211154.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating zimbra-ldap SSL certificate...done.
Installing LDAP SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for ldap.huuphan.local...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting TimeZone Preference...done.
Setting services on ldap.huuphan.local...done.
Creating domain huuphan.local...done.
Setting default domain name...done.
Setting up syslog.conf...done.
Starting servers...done.
Skipping creation of default domain GAL sync account - existing install detected.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.6.0_GA_1153_RHEL6_64)
        The ADMIN EMAIL ADDRESS created (admin@huuphan.local)
Notify Zimbra of your installation? [Yes] yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.6.0_GA_1153_RHEL6_64&MAIL=admin@huuphan.local
Notification complete
Setting up zimbra crontab...done.

Moving /tmp/zmsetup11242016-211154.log to /opt/zimbra/log

Configuration complete - press return to exit

To check ldap_url and password:

The output:

[zimbra@ldap zcs]$ zmlocalconfig -s | grep 'ldap_' | egrep 'password|url'
ldap_amavis_password = 123456789
ldap_bes_searcher_password = 123456789
ldap_bind_url =
ldap_master_url = ldap://ldap.huuphan.local:389
ldap_nginx_password = 123456789
ldap_postfix_password = 123456789
ldap_replication_password = 123456789
ldap_root_password = 123456789
ldap_url = ldap://ldap.huuphan.local:389
zimbra_ldap_password = 123456789

Test zimbra ldap:

The output:

[zimbra@ldap zcs]$ ldapsearch -D "uid=zimbra,cn=admins,cn=zimbra" -x -H ldap://ldap.huuphan.local:389 -W
Enter LDAP Password:
How to install zimbra ldap

Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server with Country Information

Zimbra Client host rejected Access denied fixed