如果您正在執行 Directory Server 5.2.5 (Java ES 發行版本 4) 或更新版本, 請執行下述程序。
如果您正在執行 Directory Server 5.2.4 (Java ES 發行版本 4),在開始以下程序之前,您必須套用修補程式 5.2_Patch_4_6313027。
如果您正在執行較舊的 Directory Server 版本,在開始之前,您必須升級至 Directory Server 5.2.5 或更新版本。
若要存取 Directory Server 修補程式,請移至 http://sunsolve.sun.com。
請建立文字檔,其中包括以下內容。使用安裝的特定值來替代檔案中顯示的參數:
dn: cn=Uniqueness in Attribute Set,cn=plugins,cn=config objectClass: top objectClass: nsSlapdPlugin objectClass: ds-signedPlugin objectClass: extensibleObject cn: Uniqueness in Attribute Set nssldap-pluginPath: server_root/lif/uid-plugin.so nsslapd-pluginInitfunc: NSUniqueAttrSet_Init nsslapd-pluginType: preoperation nsslapd-pluginEnabled: on nsslapd-pluginarg0: attributeset=mail,mailalternateaddress,mailequivalentaddress nsslapd-pluginarg1: ugldapbasedn nsslapd-plugin-depends-on-type: database nsslapd-pluginId: NSUniqueAttrSet nsslapd-pluginVersion: 5.2 nsslapd-pluginVendor: Sun Microsystems, Inc. nsslapd-pluginDescription: Enforce unique values among an attribute set |
變更以下參數:
以安裝 Directory Server 的上層目錄來替代 server_root。例如: /var/opt/mps/serverroot
以根尾碼來替代 ugldapbasedn。會對此尾碼之下的所有項目執行唯一性檢查。
停止 Directory Server。
將修改的文字檔加入至 Directory Server dse.ldif 檔案。
dse.ldif 檔案的位置:
dse.ldif 檔案位於以下目錄中:
server_root/slapd- machine_name/config
其中,
server_root 為安裝 Directory Server 的上層目錄。例如:/var/opt/mps/serverroot
machine_name 為安裝 Directory Server 的主機名稱。
加入文字檔的位置:
將文字檔加入至 dse.ldif 檔案後的 uid uniqueness 區段。此區段 (dn) 的第一行如以下所示:
dn: cn=uid uniquenss,cn=plugins,cn=config
重新啟動 Directory Server。
當啟動 Directory Server 時,它會在目錄中安裝修改的 dse.ldif 檔案。
如果 Directory Server 因為 dse.ldif 檔案產生錯誤而無法啟動,請檢查您用來替代範例文字檔參數的值。您用來進行安裝的 LDAP 根尾碼、Directory Server 安裝路徑和主機必須是正確的。
如果在嘗試所有方法後仍無法啟動 Directory Server,您可以從 dse.ldif 檔案移除文字檔並重新啟動 Directory Server 。