1

我正在使用 OpenDJ-2.4.6 和 Oracle JDK 7.80,我想在我的两台服务器上运行多主复制,这些服务器的操作系统是 Amazon Linux。

OpenDJ 设置运行良好;我也可以启动服务器而不会出现任何错误。

当我按如下方式运行“ dsreplication ”脚本时:

./dsreplication enable --host1 server1.example,com --port1 4444 --bindDN1 "cn=Directory Manager" --bindPassword1 "Passw0rd" --replicationPort1 1388 --host2 server2.example,com --port2 4444 --bindDN2 "cn=Directory Manager" --bindPassword2 "Passw0rd" --replicationPort2 1388 --adminUID admin --adminPassword "Passw0rd" --baseDN "dc=example,dc=com"

脚本挂在以下步骤:

Initializing registration information on server server2.example.com:4444 with the contents of server server1.example.com:4444 .....

在检查日志时,那里没有报告错误。

但是,当我运行以下命令时:

./dsreplication status -h localhost -p 4444 --adminUID admin --adminPassword "Passw0rd" -X

它引发以下错误:

显示的信息可能不完整,因为在读取现有服务器的配置时遇到以下错误: server2.example.com:4444 上的错误:连接到服务器时发生错误。详细信息:javax.naming.AuthenticationException:[LDAP:错误代码 49 - 无效凭据] 服务器上的错误:4444:连接到服务器时出错。详细信息:javax.naming.AuthenticationException:[LDAP:错误代码 49 - 无效凭据]

请帮我。

提前致谢。

4

2 回答 2

0

错误再明确不过了:服务器 2 上的“无效凭据”。

检查 bindDN 和 bindPassword 对服务器 2 是否有效。

于 2016-04-11T10:05:07.523 回答
0

使用 OpenDJ 进行复制时,主机名必须从任一机器解析和寻址。您是否检查过您的 Amazon Linux 服务器是否属于这种情况?

于 2016-04-12T07:35:55.213 回答