- 论坛徽章:
- 0
|
在本构架图中,整个目录复制系统由两台Directory Server组成(mail.iei-sh.com和email.iei-sh.com)。我们将详细描述这2台mail server之间的相互关系。在这个系统中,mail.iei-sh.com是Supplier Directory Server,email.iei-sh.com是Consumer Directory Server,复制的方向是从mail.iei-sh.com到email.iei-sh.com。
在mail.iei-sh.com和email.iei-sh.com上分别安装ims5.1,为什么我们需要这样做呢?因为在ims5.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台ims5.1。
同时,我们在mail.iei-sh.com创建了3个domain,default domain是iei-sh.com(有10000个用户),host domain是iei-bj.com(有500个用户)和iei.com(有1000个用户)。
在mail.iei-sh.com上对整个Directory Server进行backup。
# pwd
/home/iplanet/server5/slapd-mail
# ./db2ldif
备份出来的文件存放在/home/iplanet/server5/slapd-mail/ldif目录下,文件名为2001_10_16_160549.ldif。
在2台SUN machine上安装iPlanet Messaging Server 5.1是一模一样的,安装方法详见<<iPlanet Messaging Server 5.1安装手册>;>;。但有一点,我们必需知道,为了对原有的Directory Server的相关配置产生更大的影响,我们的baseDN不应该再是o=isp,将其该为o=ispsh。在email.iei-sh.com上安装的Directory Server应该如下图所示:
在email.iei-sh.com上对整个Directory Server进行backup。
# pwd
/export/home/iplanet/server5/slapd-email
# ./db2ldif
备份出来的文件存放在/export/home/iplanet/server5/slapd-email/ldif目录下,文件名为2001_10_16_175555.ldif。
这样做的目的是复制一旦出现问题,我们可以及时的进行恢复。
如何设置目录服务器的同步复制
首先在email.iei-sh.com上的从目录服务器上设置同步的帐号和口令,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.
重新启动目录服务器后设置生效
为了将主目录服务器中(mail.iei-sh.com)的o=isp下所有的用户数据同步到从目录服务器(email.iei-sh.com)中,我们需要在从目录服务器中添加一个Organization为o=isp,如果不添加该Organization,复制将会失败.设置步骤如下:
l打开Netscape Console,选择Configuration,选中Database,选择right pane中的Settings.
Click Add,并在文本框中输入o=isp,如下图所示
重新启动目录服务器后设置生效,该设置仅仅是修改了/export/home/iplanet/server5/slapd-email/config/slapd.ldbm.conf中相关内容,并没有在Console中显示它,为此,我们还要做如下的配置:
选中email.iei-sh.com:389,由击它,并选择New中的Other。
选中后,我们将在New Object中选中Organization,如下图:
Click OK 后,将出现如下的界面:
将Organization的名字从New 改为isp
重新启动目录服务器后设置生效
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
详细步骤:
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.
重新启动目录服务器后设置生效
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
配置过程如下图所示:
对Consumer Server进行设置,选择Other,输入主机名和端口(email.iei-sh.com和389)
输入在从目录服务器中设置的帐号和口令(cn=Replication Manager和repmanager),选择Subtree为主目录服务器的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.
|
|