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

執行 comm_dssetup.pl 程序檔

您可以在互動模式或無訊息模式中執行 comm_dssetup.pl,如以下小節中所述︰

使用表 E–3 中的安裝工作表記錄您的答案。

Procedure在互動模式中執行 comm_dssetup.pl

如果您指定 comm_dssetup.pl 不帶任何引數,系統將詢問您以下問題:

步驟
  1. 介紹


    # perl comm_dssetup.pl
    
    Welcome to the Directory Server preparation tool for Java Enterprise 
    Communications Server.(Version X.X Revision X.X)
    This tool prepares your directory server for Sun Java System Messaging 
    Server install.
    
    The logfile is /var/tmp/dssetup_YYYYMMDDHHSS
    
    Do you want to continue [y]:

    按下 Enter 鍵以繼續。鍵入 No 以結束。

  2. Directory Server 的安裝根


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

    表明 Directory Server 機器上 Directory Server 之安裝根的位置。請注意,Directory Server 根位置與 Linux 上的不同。

  3. Directory Server 實例


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

    如果機器上存在多個 Directory Server 實例,請選擇要與 Messaging Server 一同配置的實例。

  4. 目錄管理員辨別名稱 (DN)


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

    目錄管理員 DN (cn=Directory Manager) 是負責組織樹狀結構中使用者資料和群組資料的管理員。請確定此程序檔中指定的目錄管理員 DN 與您在 Directory Server 安裝和 Messaging Server 安裝中設定的 DN 相同。

  5. 使用者和群組 Directory Server


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

    如果您鍵入 Yes,系統將詢問關於使用者/群組樹狀結構的更多問題。

    如果鍵入 No,則假設此目錄實例僅用於儲存配置資料,您將跳至有關更新模式檔案的問題。針對配置目錄實例執行完此程序檔後,您需要針對儲存使用者資料和群組資料的目錄實例執行此程序檔,然後才能繼續執行安裝程序。

  6. 使用者和群組基底字尾


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

    使用者和群組基底字尾是組織樹中的頂層項目,它包含使用者項目和群組項目的名稱空間。請確定您選取的使用者和群組基底字尾與您在 Directory Server 安裝和 Messaging Server 安裝期間指定的字尾相同。


    備註 –

    如果安裝了 Access Manager,請確定在 Access Manager 安裝中指定的字尾與您在此問題中指定的字尾相同。如果使用不同的字尾,Messaging Server 將無法識別 Access Manager 安裝。


    如需有關組織樹狀結構的更多資訊,請參閱「Sun Java System Communications Services 6 2005Q4 Deployment Planning Guide」中的「LDAP Directory Information Tree Requirements」,以及「Sun Java Enterprise System 2003Q4 Installation Guide」中的第 12 章「Provisioning and Schema Concepts for Messaging Server 6.0」

  7. 模式類型


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

    若要使用 Sun LDAP Schema 1,請選擇選項 1

    若要使用 Sun LDAP Schema 2 相容性模式,請選擇選項 1.5。如需更多資訊,請參閱「Sun Java System Communications Services 6 2005Q4 Schema Migration Guide」

    若要使用 Sun LDAP Schema 2 原生模式,請選擇選項 2

    如果未安裝 Access Manager,comm_dssetup.pl 將不再終止。相反,它將會警告您還未安裝 Access Manager,並為您安裝模式 2。警告螢幕顯示如下︰


    Please enter the Schema Type (1, 1.5, 2) [1]: 2
    
    Access Manager has not been configured for this new user/group suffix
    
    You can opt to continue, but you will not be able to use features
    that depend on Access Manager
    
    Are you sure you want this schema type? [n]:

    如需有關模式選項的更多資訊,請參閱「Sun Java System Communications Services 6 2005Q4 Deployment Planning Guide」中的第 8 章「Understanding Schema and Provisioning Options」

  8. 網域元件 (DC) 樹基底字尾


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

    備註 –

    步驟 7 中,如果選擇選項 1 或 1.5,系統會要求您提供 DC 樹狀結構基底字尾。如果選擇選項 2 (Sun LDAP Schema 2 原生模式),系統則不會詢問這一問題。


    DC 樹會鏡射本地 DNS 結構,系統會使用 DC 樹作為組織樹 (包含使用者項目和群組項目) 的索引。DC 樹基底字尾是 DC 樹中頂層項目的名稱。您可以選擇預設的 o=internet,也可以選擇其他名稱。

    如需 DC 樹狀結構或組織樹狀結構的更多資訊,請參閱「Sun Java System Communications Services 6 2005Q4 Deployment Planning Guide」中的「LDAP Directory Information Tree Requirements」,以及「Sun Java Enterprise System 2003Q4 Installation Guide」中的第 12 章「Provisioning and Schema Concepts for Messaging Server 6.0」

  9. 更新模式檔案


    Do you want to update the schema files [yes]:

    如果回答 Yes,新元素將增加至模式中。建議您每次安裝新版 Messaging Server 時,都使用新的模式檔案更新目錄。

  10. 配置新索引


    Do you want to configure new indexes [yes]:

    如果對於是否將此 Directory Server 用於使用者/群組這一問題,您回答 Yes (步驟 5),則系統將詢問您是否要配置新索引,新索引將用於建立快取以提昇目錄搜尋的效率。建議您對此問題回答 Yes。然而,在以下幾種情況下,您會不希望建立索引:

    • 索引用於僅服務於複製的主要使用者/群組 Directory Server,也就是說,不存在針對使用者/群組 Directory Server 執行的直接查詢。

    • 您擁有的是具有諸多項目的生產使用者/群組 Directory Server,而您不希望在建立索引時出現長時間的當機。

  11. 設定摘要


    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                    : o=usergroup
      Add New Indexes                    : 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]:

    更新目錄配置之前,螢幕上將顯示您的設定摘要。此時未發生任何變更。


    備註 –

    步驟 7 中,如果您選擇選項 2︰(Sun LDAP Schema 2 原生模式),則 [設定摘要] 中的 DC 根將與您為 [使用者/群組根] 所輸入的值相同。


    如果要變更任何設定,請輸入 No 並再次執行程序檔。

    如果輸入 Yes 繼續執行,comm_dssetup.pl 程序檔將建立 LDIF 檔案和 Shell 程序檔,以用於更新 Directory Server 中的索引和模式:


    /var/tmp/dssetup_YYYYMMDDHHMMSS.sh
    /var/tmp/dssetup_YYYYMMDDHHMMSS.ldif
    

    其中 YYYYMMDDHHMMSS 表示檔案建立的時間戳記和日期戳記。


    備註 –

    您可以選擇立即執行程序檔或以後再執行程序檔。如果選擇立即執行程序檔,請在系統詢問您是否要繼續時鍵入 Yes。如果要以後再執行程序檔,可以使用 /var/tmp/dssetup_YYYYMMDDHHMMSS.sh 呼叫程序檔。


Procedure在無訊息模式中執行 comm_dssetup.pl

步驟

    若要啟用無訊息模式,請一次在單一行上指定所有引數︰


    # perl comm_dssetup.pl -i yes|no -R yes|no -c \
    Directory_Svr_Root -d Directory_instance \
     -r DC_tree -u User_Group_suffix -s yes|no \
    -D "DirectoryManagerDN" \
      -w password -b yes|no -t 1|1.5|2 \
    -m yes|path-to-schema-files]
    

    例如:


    # perl comm_dssetup.pl -i yes -c /var/opt/mps/serverroot -d slapd-budgie 
    -r o=internet -u o=usergroup -s yes -D "cn=Directory Manager"  
    -w password -b yes -t 1 -m yes
    

    此指令的選項包括:

    選項 

    說明 

    -i yes|no

    回答以下問題:「是否要配置新索引?」指定 yes 以配置新索引。如果不想配置新索引,請指定 no

    -R yes|no

    如果找到新索引並且已給定 -m yes,請執行重新索引 

    -c Directory_Svr_Root

    Directory Server 根路徑名稱。例如:/var/opt/mps/serverroot

    -d Directory_instance

    Directory Server 實例子目錄。例如:slapd-budgie

    -r DC_tree

    DC 樹字尾。例如:o=internet

    -u User_Group_suffix

    使用者/群組字尾。範例:o=usergroup

    -s yes|no

    回答以下問題:「是否要更新模式?」指定 yes 以更新模式檔案。如果不想更新模式檔案,請指定 no

    -D DirectoryManagerDN

    目錄管理員 DN。例如,"cn=Directory Manager"

    -w password

    目錄管理員密碼 

    -b yes|no

    回答以下問題:「是否將此 Directory Server 用於使用者和群組?」如果要將此 Directory Server 用於配置和使用者/群組,請指定 yes。如果僅將此目錄用於配置資料,請指定 no

    -t 1|1.5|2

    確定要用於 Messaging Server 的模式版本: 

    • 若要使用 Sun LDAP Schema 1,請選擇 1

    • 若要使用 Sun LDAP Schema 2 (相容性模式),請選擇 1.5。請參閱「Sun Java System Communications Services Schema Migration Guide」以取得更多資訊。

    • 若要使用 Sun LDAP Schema 2 (原生模式),請選擇 2

    -m yes|no

    回答以下問題:「是否要修改 Directory Server?」指定 yes 以修改目錄。如果不想修改目錄,請指定 no

    -S path-to-schema-files

    指定模式檔案的目錄路徑。例如:./schema.

    comm_dssetup.pl 程序檔設定所有選項後,您可以在程序檔執行之前,看到以下摘要螢幕:


    Here is a summary of the settings that you chose:
      Server Root                        : /var/opt/mps/serverroot/
      Server Instance                    : slapd-budgie
      Users/Groups Directory             : Yes
      Update Schema                      : yes
      Schema Type                        : 1
      DC Root                            : o=internet
      User/Group Root                    : o=usergroup
      Add New Indexes                    : yes
      Schema Directory                   : ./schema
      Directory Manager DN               : "cn=Directory Manager"

    每個選項均在在互動模式中執行 comm_dssetup.pl中有進一步說明。