Sun Java System Directory Server Enterprise Edition 6.0 管理指南

Procedure配置具階層與分佈演算法的資料檢視

無法使用 DSCC 執行此作業。請依照此程序中的說明使用指令行。

  1. 建立與配置 LDAP 資料來源中所述,建立各個 LDAP 伺服器的資料來源。

  2. 建立與配置 LDAP 資料來源池中所述,建立四個資料來源池。

  3. 根據將 LDAP 資料來源附加至資料來源池中的指示,附加資料來源至資料來源池。

    • 將包含 dc=example,dc=com 的資料來源附加至 data-source-pool-1

    • 將包含 ou=computer,dc=example,dc=com 的資料來源附加至 data-source-pool-2

    • 將包含 ou=people,dc=example,dc=comuid 介於 099 之項目的資料來源附加至 data-source-pool-3

    • 將包含 ou=people,dc=example,dc=comuid 介於 100199 之項目的資料來源附加至 data-source-pool-4

  4. (可選擇) 配置負載平衡。

    如需相關資訊,請參閱配置負載平衡

  5. 建立基底 DN 為 dc=example,dc=com、參考 data-source-pool-1 的資料檢視。


    $ dpconf create-ldap-data-view -h host1 -p 1389 dataview-1 \
     data-source-pool-1 dc=example,dc=com
  6. 建立基底 DN 為 ou=computer,dc=example,dc=com 、參考 data-source-pool-2 的資料檢視。


    $ dpconf create-ldap-data-view -h host1 -p 1389 dataview-2 \
     data-source-pool-2 ou=computer,dc=example,dc=com
  7. 建立基底 DN 為 ou=people,dc=example,dc=com 、參考 data-source-pool-3 的資料檢視。在資料檢視上配置分佈演算法以選取 uid 介於 099 的項目。


    $ dpconf create-ldap-data-view -h host1 -p 1389 dataview-3 \
     data-source-pool-3 ou=people,dc=example,dc=com
    $ dpconf set-ldap-data-view-prop dataview-3 distribution-algorithm:numeric \
     numeric-attrs:uid numeric-lower-bound:0 numeric-upper-bound:99
  8. 建立基底 DN 為 ou=people,dc=example,dc=com、參考 data-source-pool-4 的資料檢視,並在該資料檢視上配置分佈演算法以選取 uid 介於 100199 的項目。


    $ dpconf create-ldap-data-view -h host1 -p 1389 dataview-4 \
     data-source-pool-4 ou=people,dc=example,dc=com
    $ dpconf set-ldap-data-view-prop dataview-4 distribution-algorithm:numeric \
     numeric-attrs:uid numeric-lower-bound:100 numeric-upper-bound:199
  9. 檢視 excluded-subtrees 參數,以驗證子樹狀結構 ou=computer,dc=example, dc=com ou=people,dc=example, dc=com 已從 dataview-1 排除。


    $ dpconf get-ldap-data-view-prop -h host1 -p 1389 dataview-1 excluded-subtrees

    傳回排除的子樹狀結構清單。

  10. 重新啟動目錄代理伺服器實例,變更方可生效。

    如需有關重新啟動目錄代理伺服器的資訊,請參閱重新啟動目錄代理伺服器