Sun Java System Calendar Server 6 2005Q4 管理指南

Procedure在交互式模式下运行

要以交互式模式运行目录准备脚本,请运行该脚本而不使用任何参数,然后对所问的问题输入您的选择。

以下带有数字编号的各段提供了有关如何使用交互式模式脚本的各个面板说明。

步骤
  1. 欢迎和简介面板


    # cd /opt/SUNWcomds/sbin
    # ./comm_dssetup.pl
    
    Welcome to the Directory Server preparation tool for 
    Sun Java System Communications Services.
    (Version 6.3 Revision 0.1)
    This tool prepares your directory server for use by the
    communications services which include Messaging, 
    Calendar and their components.
    The logfile is /var/tmp/dssetup_YYYYMMDDHHSS
    Do you want to continue [y]:

    按 Enter 键继续;或者键入 no,然后按 Enter 退出。

  2. Directory Server 安装根目录面板


    Please enter the full path to the directory where the 
            Sun Java System Directory Server was installed.
    Directory server root [/var/opt/mps/serverroot]

    请指定 Directory Server 的安装根目录的位置,或者按 Enter 键接受默认设置。

  3. Directory Server 实例面板

    如果此计算机上有多个 Directory Server 实例,则程序将列出这些实例,并要求您选择其中之一。


    Please select a directory server instance from the following list:
           [1] slapd-varrius
    Which instance do you want [1]:

    输入与选项对应的编号,然后按 Enter 键。或者不输入编号直接按 Enter 键接受默认设置。

  4. 目录管理员的标识名 (DN) 面板

    在此面板中需要输入两样内容:目录管理员 DN 和目录管理员密码。

    1. 首先,脚本将要求您输入 Directory Manager 的标识名 (DN):


      Please enter the directory manager DN [cn=Directory Manager]:

      目录管理员 DN(默认值为 cn=Directory Manager),目录管理员是指负责管理“组织”树中的用户和组数据的管理员。请确保您在此脚本中指定的 Directory Manager DN 与您为 Directory Server 安装和 Calendar Server 配置设置的 DN 相同。

      输入 Directory Manager DN,或者按 Enter 键接受默认设置。

    2. 然后脚本将要求您输入目录管理员的密码。


      Password:

      输入 Directory Manager 密码并按 Enter 键。

      程序将查看 Directory Server 是否正在运行并正在侦听端口 389(默认端口)。

      如果成功,它将显示检测到的版本,如以下示例所示:


      Detected DS version 5.2

      如果不成功,程序将通知您它无法检测到正在运行或正在侦听端口 389 的 Directory Server。程序将指导您解决此问题,然后才允许您继续下去。脚本退出。以下示例显示了该输出:


      Directory Server not running or not listening to port 389.
      Detected DS version 0.0
      Please correct the problem and re-run this script.
  5. 用户和组 Directory Server 面板


    Will this directory server be used for users/groups [Yes]:

    如果该目录实例仅用于存储配置数据,请输入 No,或者按 Enter 键接受默认设置。

    如果输入 No,则还必须针对存储用户和组数据的目录实例运行该脚本。(请在运行配置程序 csconfigurator.sh 前执行该操作。)

    如果回答是 Yes,则必须为“组织”树指定用户和组的基本后缀。

  6. 用户和组的基本后缀面板


    Please enter the Users/Groups base suffix [o=usergroup]:

    用户和组的基本后缀是 LDAP 组织树中的顶部条目。请确保您在此选择的后缀与您为 Directory Server、Calendar Server 和 Access Manager 指定的后缀相同。

  7. 模式类型面板


    There are 3 possible schema types:
    1-schema 1 for systems with Calendar or Messaging 5.x data
    1.5-schema 2 compatibility for systems with Calendar or Messaging 5.x
        data that has been converted with the Schema Migration Utility 
        commdirmig
    2-schema 2 native for systems using Access Manager
    Please enter the Schema Type (1, 1.5, 2) [1]:

    输入模式类型,或者按 Enter 键接受默认设置。


    注 –

    要使用 Schema 2(选项 1.52),必须安装并配置 Access Manager。否则,Directory 准备脚本将终止。必须先安装 Access Manager,然后再重新运行目录准备脚本。


  8. 域组件 (DC) 树的基本后缀面板

    如果您选择了 Schema 1 或 Schema 2 兼容模式,系统将要求您提供 DC 树的基本后缀。如果您选择了 Schema 2 本机模式,系统将不会询问此问题。


    Please enter the DC Tree base suffix [o=internet]:

    在前面介绍的模式类型面板中,如果您选择了 Schema 1 或 Schema 2 兼容模式,将要求您提供 DC 树基本后缀。如果您选择了 Schema 2 本机模式,系统将不会询问此问题。

    DC 树镜像本地 DNS 结构,系统将其用作包含用户和组数据条目的组织树的索引。DC 树的基本后缀是 DC 树中顶层条目的名称。

    输入后缀,或者按 Enter 键接受默认设置。

  9. 系列问题面板

    该面板将询问您有关对 LDAP 的更新的一系列问题。

    1. 更新模式文件

      这时,程序将查看模式是否具有正确的模式元素。如果模式缺少某些元素,程序将显示以下消息:


      Detected bad schema elements in 99user.ldif. 
      It is recommended that you update the schema.
      
      Do you want to update the schema files [yes]:

      回答 Yes 将所需的新元素添加到模式中。每次安装新版的 Calendar Server 或 Messaging Server 时,需要使用新的模式文件更新该目录。

      如果要以后更新模式文件,请回答 No

    2. 配置新索引

      如果在上一步中选择了更新模式,系统将询问您是否要配置新索引。有关为属性创建索引的更多信息,请参见属性索引


      Do you want to configure new indexes [yes]:

      要批准索引的创建,请按 Enter 键。

      如果您已对同一属性执行过此索引创建步骤,请回答 no

    3. 立即重新创建索引

      您可以选择立即创建索引,也可以以后再创建。如果您选择推迟创建索引,则可以在方便时返回已打开创建索引功能的脚本。创建索引可能需要很长的时间,但仍可以使用 Directory Server,也就是说创建索引时,Directory Server 并不会进入只读模式。


      Reindex now [yes]?

      如果要在以后创建索引,请回答 no;否则,请按 Enter 键接受默认设置。

  10. 设置摘要面板

    在目录准备脚本更新 Directory Server 配置之前,将显示设置摘要,然后询问您是否要继续。


    Here is a summary of the settings that you chose:
      Server Root                    : /var/opt/mps/serverroot/
      Server Instance                : slapd-varrius
      Users/Groups Directory         : yes
      Update Schema                  : yes
      Schema Type                    : 1
      DC Root                        : o=internet
      User/Group Root                : dc=red,dc=sesta,dc=com
      Add New Indexes                : yes
      Reindex New Indexes Now        : yes
      Directory Manager DN           : cn=Directory Manager
    
    Now ready to generate a shell script and ldif file to modify the
    Directory. 
    No changes to the Directory Server will be made this time.
    Do you want to continue [Y]:

    如果在运行目录准备脚本中选择了 Schema 2 本机模式,则 DC Root 的值与您输入的User/Group Root 的值相同。

    要更改任何设置,请输入 no,然后重新运行脚本。

    如果要继续,请按 Enter 键。目录准备脚本将生成 LDIF 文件和 shell 脚本。它创建的文件的名称如下所示:


    /var/tmp/dssetup_timestamp.ldif
     /var/tmp/dssetup_timestamp.sh

    如果选择继续,将会看到程序运行而显示的消息。以下为您将会看到的输出的示例:


    Generating files...
    
    Checking to see if Suffixes need to be added
    
    Checking to see that uid uniqueness plugins are turned off
    
    Adding indexes
      Adding Indexes for User/group Tree (backend:userRoot)
        Checking indexes for member
          No new indexes required
        Checking indexes for mailAlternateAddress
          No new indexes required
        Checking indexes for mail
          No new indexes required
        Checking indexes for mailEquivalentAddress
          No new indexes required
        Checking indexes for cosspecifier
          No new indexes required
      Adding Indexes for DC Tree (backend:internetdb2)
        Checking indexes for inetCanonicalDomainName
          No new indexes required
        Checking indexes for inetDomainBaseDN
          No new indexes required
      Adding Indexes for PAB Tree (backend:pabdb2)
        Checking indexes for memberOfPAB
          No new indexes required
        Checking indexes for icsCalendar
          No new indexes required
        Checking indexes for un
          No new indexes required
        Checking indexes for memberOfPABGroup
          No new indexes required
        Checking indexes for icsCalendarOwned
          No new indexes required
        Checking indexes for memberOfManagedGroup
          No new indexes required
      Adding Indexes for New PAB Tree (backend:PiServerDbdb2)
        Checking indexes for MemberOfPiBook
          No new indexes required
        Checking indexes for MemberofPiGroup
          No new indexes required
        Checking indexes for displayname
          No new indexes required
    
    Checking to see if DN needs to be created for suffixes 
    Generating ldif for installer metadata
      Generating ldif for Adding schema for installer metadata
      Generating ldif for updating DN for cn=CommServers,o=comms-config
    The following files have been created:
       /var/tmp/dssetup_20041209114027.sh
       /var/tmp/dssetup_20041209114027.ldif
    
    Running /var/tmp/dssetup_20041209114027.sh will make changes 
      to the Directory. You can run this file now or at a later time
    Ready to execute the script now.
  11. 运行脚本


    Do you want to continue [yes]:

    按 Enter 键接受默认设置 (yes)。dssetup_timestamp.sh 脚本将针对 LDAP 目录运行。如果并不要立即运行该脚本,请输入 No 以退出。如果退出,您可以在以后运行 /var/tmp/dssetup_timestamp.sh 脚本。

    以下为运行脚本时生成的文本输出的示例:


    Running /var/tmp/dssetup_20041209114027.sh 
       -D "cn=Directory Manager"
       -j /var/tmp/dssetup_20041209114027.pw
    Stopping Directory Server
    Updating Schema files...
    Copying 20subscriber.ldif
    Copying 50ns-delegated-admin.ldif
    Copying 50ns-mail.ldif
    Copying 50ns-mlm.ldif
    Copying 50ns-msg.ldif
    Copying 50ns-value.ldif
    Copying 55ims-ical.ldif
    Copying 56ims-schema.ldif
    Copying 70sun-schema2.ldif
    Copying 71sun-am.ldif
    Copying 60iplanet-calendar.ldif
    Copying 50ns-iabs.ldif
    Copying 98ns-dummy-uwc.ldif
    Copying 70delgated-admin.ldif
    Copying /var/tmp/99user_20041209114027.ldif to 
            /var/opt/mps/serverroot/slapd-varrius/config/schema/99user.ldif
    Starting Directory Server
    Applying ldif file /var/tmp/dssetup_20041209114027.ldif
    modifying entry cn=schema
    
    modifying entry cn=schema
    
    modifying entry cn=CommServers,o=comms-config
    
    Done Applying ldif file /var/tmp/dssetup_20041209114027.ldif
    rejects to /var/tmp/dssetup_20041209114027.ldif.rej status = 0
    Successful Completion. 
    Consult /var/tmp/dssetup_20041209114027.log for details