2016-04-10 19 views
1

我正在使用OpenDJ-2.4.6以及Oracle JDK 7.80,我想在我的2上運行多主複製服務器,這些服務器的操作系統是Amazon Linux。OpenDJ多主複製失敗(掛起在初始化註冊信息步驟):: javax.naming.AuthenticationException

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 

它引發以下錯誤:

The displayed information might not be complete because the following errors were encountered reading the configuration of the existing servers: Error on server2.example.com:4444: An error occurred connecting to the server. Details: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials] Error on server:4444: An error occurred connecting to the server. Details: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

請幫助我。

在此先感謝。

回答

0

錯誤不能更明確:在服務器上「無效憑證」 2.

檢查指定binddn和bindPassword是針對服務器有效2.

+0

即使是跨服務器,我的所有密碼都是相同的,所以這絕對不應該成爲問題。 – user1944878

0

在做與OpenDJ複製,主機名必須解決並可從任一臺機器尋址。您是否檢查過您的Amazon Linux服務器是否屬於這種情況?