OpenLDAP in the previous has been introduced to you, the LDAP service is now using a relatively many, Lightweight directory services, performance is good.
Now let's talk about LDAP replication, that is, when an LDAP server changes, the other one will change as well, which will prevent downtime when an outage occurs.
OpenLDAP Replication configuration:
1. Modify the LDAP Service configuration file for master host
650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M02/72/2D/ Wkiom1xedg-r2mypaailwariihg904.jpg "alt=" Wkiom1xedg-r2mypaailwariihg904.jpg "/>
2. Make sure the ServerID cannot be the same as the standby and enable the Syn file
650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M00/72/29/ Wkiol1xeecezgcwdaaf1j36ehr0837.jpg "alt=" Wkiol1xeecezgcwdaaf1j36ehr0837.jpg "/>
3. Modify the Syn file for the host
650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M00/72/29/ Wkiol1xeecejzvouaaa_tvvcg8k419.jpg "alt=" Wkiol1xeecejzvouaaa_tvvcg8k419.jpg "/>
4.rid ensure that the only, LDAP address is the standby address, the secret key according to their own actual situation to write, CN DC value according to the actual situation to write
650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M00/72/2D/ Wkiom1xedg-tebicaadz9c1tymu322.jpg "alt=" Wkiom1xedg-tebicaadz9c1tymu322.jpg "/>
5. Modify the LDAP configuration file in the slave host
650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M01/72/29/ Wkiol1xeecfwgniuaagxwe8oj-k078.jpg "alt=" Wkiol1xeecfwgniuaagxwe8oj-k078.jpg "/>
6. Modify the Syn file of the standby note the items
650) this.width=650; "style=" Float:none; "title=" 6.png "src=" http://s3.51cto.com/wyfs02/M01/72/2A/ Wkiol1xeeq7jwklyaadzqx_p1v4693.jpg "alt=" Wkiol1xeeq7jwklyaadzqx_p1v4693.jpg "/>
7. Restart the LDAP Service
650) this.width=650; "style=" Float:none; "title=" 7.png "src=" http://s3.51cto.com/wyfs02/M01/72/2D/ Wkiom1xedvahxukmaacxmwzhmi4851.jpg "alt=" Wkiom1xedvahxukmaacxmwzhmi4851.jpg "/>
8. Use the LDAP Connection tool to view the connection, if you find a redundant garbage node, delete directly
650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M02/72/2A/ Wkiol1xeeq6s9sxeaan5_hjm-lc651.jpg "alt=" Wkiol1xeeq6s9sxeaan5_hjm-lc651.jpg "/>
To this, the LDAP replication operation is configured to complete!
Linux OPENLDAP Synchronization Configuration