- 论坛徽章:
- 0
|
我在配置 master/slave LDAP 时发现修改 slave 上的数据 master 不会同步,而修改master 上的数据 slave 可以几乎同时同步,查openldap 文档时看到一下例子:
1. The LDAP client submits an LDAP modify operation to the slave slapd.
2. The slave slapd returns a referral to the LDAP client referring the client to the master slapd.
3. The LDAP client submits the LDAP modify operation to the master slapd.
4. The master slapd performs the modify operation, writes out the change to its replication log file and returns a success code to the client.
5. The slurpd process notices that a new entry has been appended to the replication log file, reads the replication log entry, and sends the change to the slave slapd via LDAP.
6. The slave slapd performs the modify operation and returns a success code to the slurpd process.
这样看来,其实 master/slave 结构中,客户端提交的修改都是在 master 上执行然后再将修改 replicate 到 slave 上。
因此我觉得如果直接在 slave 上的修改不会在 master 上生效,除非客户端支持自动重定向功能,文档上说 ldapmodify 并不支持,我使用的是 ldapbrowser,好象也不支持,有谁成功配置过 master/slave 同步,介绍一下经验,实在看不明白! |
|