- 論壇徽章:
- 0
|
在本構(gòu)架圖中,整個(gè)目錄復(fù)制系統(tǒng)由兩臺(tái)Directory Server組成(mail.iei-sh.com和email.iei-sh.com)。我們將詳細(xì)描述這2臺(tái)mail server之間的相互關(guān)系。在這個(gè)系統(tǒng)中,mail.iei-sh.com是Supplier Directory Server,email.iei-sh.com是Consumer Directory Server,復(fù)制的方向是從mail.iei-sh.com到email.iei-sh.com。
在mail.iei-sh.com和email.iei-sh.com上分別安裝ims5.1,為什么我們需要這樣做呢?因?yàn)樵趇ms5.1中的Directory Server具備了Directory Server,Messaging Server 5.1,Delegated Adminstrator所需要的schema,而如果我在email.iei-sh.com上僅僅是安裝了Directory Server,它僅僅具備了Directory Server的schema,而不具備Messaging Server 5.1,Delegated Adminstrator的schema,為此,我們必須安裝2臺(tái)ims5.1。
同時(shí),我們?cè)趍ail.iei-sh.com創(chuàng)建了3個(gè)domain,default domain是iei-sh.com(有10000個(gè)用戶),host domain是iei-bj.com(有500個(gè)用戶)和iei.com(有1000個(gè)用戶)。
在mail.iei-sh.com上對(duì)整個(gè)Directory Server進(jìn)行backup。
# pwd
/home/iplanet/server5/slapd-mail
# ./db2ldif
備份出來的文件存放在/home/iplanet/server5/slapd-mail/ldif目錄下,文件名為2001_10_16_160549.ldif。
在2臺(tái)SUN machine上安裝iPlanet Messaging Server 5.1是一模一樣的,安裝方法詳見<<iPlanet Messaging Server 5.1安裝手冊(cè)>;>;。但有一點(diǎn),我們必需知道,為了對(duì)原有的Directory Server的相關(guān)配置產(chǎn)生更大的影響,我們的baseDN不應(yīng)該再是o=isp,將其該為o=ispsh。在email.iei-sh.com上安裝的Directory Server應(yīng)該如下圖所示:
在email.iei-sh.com上對(duì)整個(gè)Directory Server進(jìn)行backup。
# pwd
/export/home/iplanet/server5/slapd-email
# ./db2ldif
備份出來的文件存放在/export/home/iplanet/server5/slapd-email/ldif目錄下,文件名為2001_10_16_175555.ldif。
這樣做的目的是復(fù)制一旦出現(xiàn)問題,我們可以及時(shí)的進(jìn)行恢復(fù)。
如何設(shè)置目錄服務(wù)器的同步復(fù)制
首先在email.iei-sh.com上的從目錄服務(wù)器上設(shè)置同步的帳號(hào)和口令,perform the steps necessary for Supplier Initiated Replication and initialize the consumer server with the supplier server.
步驟如下:
2.2.1 Configure Consumer Server Settings:
1.Open the Directory Server Console for the directory server instance you just installed in the email.iei-sh.com。
2. Select the Configuration tab,Replication Agreements folder in the left pane.
3.In the right pane,select the Consumer Setting tab ans fill in the following:
Supplier DN:cn=Replication Manager
New supplier password:repmanager
Confirm new supplier password:repmanager
4. Click Save.
重新啟動(dòng)目錄服務(wù)器后設(shè)置生效
為了將主目錄服務(wù)器中(mail.iei-sh.com)的o=isp下所有的用戶數(shù)據(jù)同步到從目錄服務(wù)器(email.iei-sh.com)中,我們需要在從目錄服務(wù)器中添加一個(gè)Organization為o=isp,如果不添加該Organization,復(fù)制將會(huì)失敗.設(shè)置步驟如下:
l打開Netscape Console,選擇Configuration,選中Database,選擇right pane中的Settings.
Click Add,并在文本框中輸入o=isp,如下圖所示
重新啟動(dòng)目錄服務(wù)器后設(shè)置生效,該設(shè)置僅僅是修改了/export/home/iplanet/server5/slapd-email/config/slapd.ldbm.conf中相關(guān)內(nèi)容,并沒有在Console中顯示它,為此,我們還要做如下的配置:
選中email.iei-sh.com:389,由擊它,并選擇New中的Other。
選中后,我們將在New Object中選中Organization,如下圖:
Click OK 后,將出現(xiàn)如下的界面:
將Organization的名字從New 改為isp
重新啟動(dòng)目錄服務(wù)器后設(shè)置生效
Configure a Supplier Directory Server for SIR
Objective
Perform the steps necessary for Supplier Initiated Replication and initialize the consumer server with the supplier server.
Parts
1.Configure the change log directory for SIR
2.Create an SIR agreement for replication and Initialize the Consumer
3.Verify replication
詳細(xì)步驟:
lConfigure the change log for SIR
1. From the Netscape Console,open your supplier server(mail.iei-sh.com)
2.Select the Configuration tab the select the Replication Agreements folder.
3.Select the Supplier Setting tab in the right pane.
4.Click Use Default for the Changelog Database directory.
5.Click Save to save the changes.Click OK to the “server needs to be restarted” message.
重新啟動(dòng)目錄服務(wù)器后設(shè)置生效
lCreate an SIR agreement and Initialize Consumer
1.On the supplier server’s Directory Server Console(mail.iei-sh.com),select the Configuration tab.
2.Right-click the Replication Agreements folder and select New Replication Agreement.This will start the Replication Agreement Wizard.
3.Replication Agreement Wizard.Select an agreement type:Supplier Initiated Agreement.Click Next.
4.Specify agreemment name: Replication1.Click Next.
5.Source and Destination:
Supplier: mail.iei-sh.com:389
Consumer: email.iei-sh.com:389
Connection: Simple Authentication
Bind as: cn=Replication Manager
Password: repmanager
Subtree: o=isp
配置過程如下圖所示:
對(duì)Consumer Server進(jìn)行設(shè)置,選擇Other,輸入主機(jī)名和端口(email.iei-sh.com和389)
輸入在從目錄服務(wù)器中設(shè)置的帳號(hào)和口令(cn=Replication Manager和repmanager),選擇Subtree為主目錄服務(wù)器的o=isp
Click Next
6.Replication Schedule: Select Always keep directories in sync.click Next
7.Intialize Consumer: Select Intialize Consumer now.click Next.
8.Summary: You should see a summary screen like the following:
Click Done.Replication should begin and complete in about some minutes.
|
|