How to Install and Configure Zimbra 8.6 Multi master ldap

install multi master ldap

How to Install and Configure Zimbra 8.6 Multi master ldap, my post install multi master ldap, the script for zimbra 8.6 multi-master ldap.

Zimbra ldap01
Hostname: ldap01.huuphan.local
ip address: 192.168.131.15

Zimbra ldap02
Hostname: ldap02.huuphan.local
ip address: 192.168.131.16







you can how to install and configure zimbra multi server

Enabling Multi-Master Replication on zimbra ldap01


#su zimbra
$ cd /opt/zimbra/
$./libexec/zmldapenable-mmr -s 1 -m ldap://ldap02.huuphan.local:389/
$zmlocalconfig -e ldap_master_url="ldap://ldap01.huuphan.local:389 ldap://ldap02.huuphan.local:389"
$zmlocalconfig -e ldap_url="ldap://ldap01.huuphan.local:389 ldap://ldap02.huuphan.local:389"

Installing a secondary Master ldap02 server


The first, Two ldap01 and ldap02 the same password. From ldap01

$zmlocalconfig -s | grep passw | grep ldap

Let's go install ldap02.

./install.sh

The ouput

[root@ldap02 zcs]# ./install.sh
Operations logged to /tmp/install.log.1255
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/zmsetup12162016-204550.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for ldap02.huuphan.local
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
Create domain: [ldap02.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:                             ldap02.huuphan.local
        +Ldap master host:                     ldap02.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) x
Invalid selection! - press any key to continue
Main menu
   1) Common Configuration:
        +Hostname:                             ldap02.huuphan.local
        +Ldap master host:                     ldap02.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:                                ldap02.huuphan.local
   2) Ldap master host:                        ldap02.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] 2
Please enter the ldap server hostname: [ldap02.huuphan.local] ldap01.huuphan.local
Common configuration
   1) Hostname:                                ldap02.huuphan.local
   2) Ldap master host:                        ldap01.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): [Pkx7jakNL] 123456789
Setting defaults from ldap...done.
Common configuration
   1) Hostname:                                ldap02.huuphan.local
   2) Ldap master host:                        ldap01.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:                             ldap02.huuphan.local
        +Ldap master host:                     ldap01.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 replication type:                replica
        +Ldap root password:                   set
******* +Ldap replication password:            Not Verified
   c) Collapse menu
   s) Save config to file
   q) Quit
Address unconfigured (**) items  (? - help) 2

Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   replica
   5) Ldap root password:                      set
** 6) Ldap replication password:               Not Verified
Select, or 'r' for previous menu [r] 4
Please enter the LDAP replication type (replica, mmr) [replica] mmr
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
** 7) Ldap replication password:               Not Verified
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 6
Password for ldap root user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
** 7) Ldap replication password:               Not Verified
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 7
Password for ldap replication user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
   7) Ldap replication password:               set
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 8
Password for ldap Postfix user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
   7) Ldap replication password:               set
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 9
Password for ldap Amavis user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
   7) Ldap replication password:               set
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 10
Password for ldap Nginx user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
   7) Ldap replication password:               set
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] 11
Password for ldap BES user (min 6 characters): [Pkx7jakNL] 123456789
Ldap configuration
   1) Status:                                  Enabled
   2) Create Domain:                           yes
   3) Domain to create:                        huuphan.local
   4) Ldap replication type:                   mmr
   5) Ldap Server ID:                          2
   6) Ldap root password:                      set
   7) Ldap replication password:               set
   8) Ldap postfix password:                   set
   9) Ldap amavis password:                    set
  10) Ldap nginx password:                     set
  11) Ldap Bes Searcher password:              set
Select, or 'r' for previous menu [r] r
Main menu
   1) Common Configuration:
        +Hostname:                             ldap02.huuphan.local
        +Ldap master host:                     ldap01.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 replication type:                mmr
        +Ldap Server ID:                       2
        +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.2927]
Saving config in /opt/zimbra/config.2927...done.
The system will be modified - continue? [No] Y
Operations logged to /tmp/zmsetup12162016-204550.log
Setting local config values...done.
Initializing core config...Updating ldap_root_password and zimbra_ldap_password...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating zimbra-ldap SSL certificate...done.
Installing LDAP SSL certificate...done.
Creating server entry for ldap02.huuphan.local...done.
Setting Zimbra IP Mode...done.
Updating ldap_root_password and zimbra_ldap_password...Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
done.
Enabling ldap replication...done.
Stopping ldap...done.
Checking ldap status....not running.
Starting ldap...done.
Setting ldap root password...done.
Setting ldap admin password...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES Searcher password...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting services on ldap02.huuphan.local...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 ([email protected])
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&[email protected]
Notification complete
Setting up zimbra crontab...done.
Moving /tmp/zmsetup12162016-204550.log to /opt/zimbra/log
Configuration complete - press return to exit
After installed secondary ldap, you update ldap_master_url and ldap_url for ldap02.

$ zmlocalconfig -e ldap_master_url="ldap://ldap02.huuphan.local:389 ldap://ldap.huuphan.local:389"

The output
[zimbra@ldap02 zcs]$ zmlocalconfig -s | egrep "ldap_url|ldap_master_url|ldap_host|password"
antispam_mysql_password =
antispam_mysql_root_password =
client_ssl_truststore_password = ${mailboxd_truststore_password}
ldap_amavis_password = 123456789
ldap_bes_searcher_password = 123456789
ldap_host = ldap.huuphan.local
ldap_master_url = ldap://ldap02.huuphan.local:389 ldap://ldap.huuphan.local:389
ldap_nginx_password = 123456789
ldap_postfix_password = 123456789
ldap_replication_password = 123456789
ldap_root_password = 123456789
ldap_url = ldap://ldap02.huuphan.local:389 ldap://ldap.huuphan.local:389
mailboxd_keystore_base_password = zimbra
mailboxd_keystore_password = _5RErMo1
mailboxd_truststore_password = changeit
mysql_root_password = zimbra
zimbra_ldap_password = 123456789
zimbra_mysql_password = zimbra
zimbra_vami_password = vmware


Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6