步骤一: 使用以下命令看是否已经配置了允许LDAP 实例主主复制, # /ldap/install/ds6/bin/dsconf list-suffixes -p 4 89 -v # /ldap/install/ds6/bin/dsconf enable-repl -h localhost -p 4 89 -d 4 891 master dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf list-suffixes -p 4 89 -v 步骤三: 为LDAP 实例修改复制管理器的密码: # echo replmanager > pwd.txt # cat pwd.txt # /ldap/install/ds6/bin/dsconf set-server-prop -h localhost -p 4 89 def-repl-manager-pwd-file:pwd.txt 步骤五: 为每个LDAP 实例创建复制协议: # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 4 89 -v dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf create-repl-agmt -h localhost -p 4 89 dc=zju,dc=edu,dc=cn localhost : 5 89 # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 389 -v dc=zju,dc=edu,dc=cn 步骤七: 初始化LDAP 实例的复制协议: # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 4 89 dc=zju,dc=edu,dc=cn localhost : 5 89 # /ldap/install/ds6/bin/dsconf init-repl-dest -h localhost -p 4 89 dc=zju,dc=edu,dc=cn localhost : 5 89
上面的命令运行后, 机器 localhost 上的 5 89实例将被初始化跟 localhost 上 4 89实例一样 # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 4 89 dc=zju,dc=edu,dc=cn localhost : 5 89
|
步骤二:
# /ldap/install/ds6/bin/dsconf list-suffixes -p 5 89 -v
# /ldap/install/ds6/bin/dsconf enable-repl -h localhost -p 5 89 -d 5891 master dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf list-suffixes -p 5 89 -v 步骤四:
# echo replmanager > pwd.txt # cat pwd.txt # /ldap/install/ds6/bin/dsconf set-server-prop -h localhost -p 5 89 def-repl-manager-pwd-file:pwd.txt 步骤六:
# /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 5 89 -v dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf create-repl-agmt -h localhost -p 5 89 dc=zju,dc=edu,dc=cn localhost : 4 89 # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 5 89 -v dc=zju,dc=edu,dc=cn 步骤八:
# /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 5 89 dc=zju,dc=edu,dc=cn localhost : 4 89
# /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 5 89 dc=zju,dc=edu,dc=cn localhost : 4 89
|
步骤 十一 : 为每个LDAP 实例创建复制协议: # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 589 -v dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf create-repl-agmt -h localhost -p 589 dc=zju,dc=edu,dc=cn localhost : 689 # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 5 89 -v dc=zju,dc=edu,dc=cn 步骤 十三 : 初始化LDAP 实例的复制协议: # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 589 dc=zju,dc=edu,dc=cn localhost : 689 # /ldap/install/ds6/bin/dsconf init-repl-dest -h localhost -p 589 dc=zju,dc=edu,dc=cn localhost : 689 上面的命令运行后, 机器 localhost 上的 6 89实例将被初始化跟 localhost 上 5 89实例一样 # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 589 dc=zju,dc=edu,dc=cn localhost : 689 |
步骤 九 : # /ldap/install/ds6/bin/dsconf list-suffixes -p 689 -v # /ldap/install/ds6/bin/dsconf enable-repl -h localhost -p 689 -d 6891 master dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf list-suffixes -p 689 -v 步骤 十 : # echo replmanager > pwd.txt # cat pwd.txt # /ldap/install/ds6/bin/dsconf set-server-prop -h localhost -p 689 def-repl-manager-pwd-file:pwd.txt 步骤 十二 : # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 689 -v dc=zju,dc=edu,dc=cn # /ldap/install/ds6/bin/dsconf create-repl-agmt -h localhost -p 689 dc=zju,dc=edu,dc=cn localhost : 589 # /ldap/install/ds6/bin/dsconf list-repl-agmts -h localhost -p 689 -v dc=zju,dc=edu,dc=cn 步骤 十四 : # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 689 dc=zju,dc=edu,dc=cn localhost : 589 # /ldap/install/ds6/bin/dsconf show-repl-agmt-status -h localhost -p 689 dc=zju,dc=edu,dc=cn localhost : 589 |