這一節描述為增強效能,您可以對 Directory Server 執行的調校。
若要在 Calendar Server 存取 LDAP Directory Server 時提高 Communications Express 的效能,請為下列 LDAP 屬性建立索引:
icsCalendar。這個屬性用來搜尋預設行事曆,以取得行事曆使用者或資源。請指定存在 (pres)、相等 (eq) 或子字串 (sub) 等索引類型。
icsCalendarOwned。這個屬性用於在啟用 LDAP CLD 外掛程式時搜尋訂閱作業。請指定存在 (pres)、相等 (eq) 及子字串 (sub) 等索引類型。
comm_dssetup.pl 程序檔為 icsCalendar、icsCalendarOwned、mail 和 mailAlternateAddress 屬性增加索引。
請務必確保使用者/群組 LDAP Directory Server 配置中的 nsSizeLimit 和 nsLookthroughLimit 參數值足夠大,以便順利完成搜尋。
若要確定這些參數是否已設定為適當的值,請輸入以下指令:
ldapsearch -b /base/ (&(icscalendarowned=*/user/*)(objectclass=icsCalendarUser))
其中
/base/ 是 Calendar Server 使用者與資源資料所在的 Directory Server 之 LDAP 基底 DN。
/user/ 是一般使用者可以在 [行事曆搜尋] 對話方塊中輸入的值,該對話方塊位於 Communications Express 中的 [訂閱] 選項下。
如果 nsSizeLimit 或 nsLookthroughLimit 參數不夠大,則 LDAP 伺服器將傳回錯誤。
按照下列規範重設 nsSizeLimit 或 nsLookthroughLimit 參數:
確定 nsSizeLimit 參數的值足夠大,以傳回所有需要的結果;否則,資料會被截斷,並且不會顯示任何結果。
確定 nsLookthroughLimit 參數值足夠大,以完成對 LDAP 目錄中所有使用者與資源的搜尋。如果可能,請將 nsLookthroughLimit 設定為 -1。這樣 nsLookthroughLimit 搜尋就不會有限制。