配置符合 LDAP 的軟體

開始之前

針對您的業務需要,建議您檢閱 Tivoli® Directory Server 試用版,該軟體可從下列網站下載:http://www-01.ibm.com/software/tivoli/products/directory-server/

如需 LDAP 和 Tivoli Directory Server 的相關詳細資訊,請參閱 IBM® Redbook SG24-4986-01,該文件可從下列網站下載: http://www.redbooks.ibm.com/abstracts/sg244986.html

關於這項作業

您可以使用 ApacheDS 目錄伺服器和 Apache Studio 用戶端來執行此範例。下面的指示專門為 ApacheDS 1.5.7 及 Studio 1.5.3 撰寫。如果您使用更新的版本,則該範例可能無法按配置執行。若要安裝並配置 ApacheDS 和 Studio 以用於示範,請按如下所示進行:

程序

  1. 下載並安裝 ApacheDS 1.5.7 目錄伺服器和 Studio 1.5.3 用戶端,它們位於下列網站:http://directory.apache.org/

    如需其他安裝資訊,請參閱《基本使用手冊》。指向《基本使用手冊》的鏈結位於「Windows 下載」頁面的左窗格中。

  2. 請確保已啟用與伺服器相關聯的硬體設定檔。
    1. 在 Windows 上,開啟「控制台」。
    2. 按兩下系統管理工具 > 服務 > Apacheds。. 將會顯示「Apacheds 內容(本端電腦)」對話框。
    3. 按一下登入標籤。如果任何列出的設定檔處於停用狀態,請選取設定檔名稱,然後按一下啟用
    4. 按一下確定
  3. 驗證是否可以啟動目錄伺服器。在「服務」對話框上,用滑鼠右鍵按一下 Apacheds,然後按一下啟動

    如果該伺服器已啟動,請將其停止。如果該伺服器尚未啟動,請重做該程序。如果該伺服器仍然未啟動,則可能需要尋找替代的符合 LDAP 的伺服器來用於示範。

  4. 若要將 EGL 範例資料與 ApacheDS 伺服器中的任何其他資料隔離,請在伺服器中建立新的分割區。若要建立新的分割區:
    1. 跳至 ApacheDS 1.0.2 目錄伺服器安裝目錄中的 conf 資料夾(例如,c:\Program Files\Apache )。
    2. 備份 server.xml 檔。
    3. 使用文字編輯器開啟 server.xml 檔。將 LDAP 埠內容值變更為 389。原始值是 10389。該陳述式應該與下列範例相似。
      <ldapServer id="ldapServer"...> 	
         ...
         <transports>
            <tcpTransport address="0.0.0.0" port="389" 
                          nbThreads="8" backLog="50" enableSSL="false"/>
            <8tcpTransport address="localhost" port="10636" enableSSL="true"/>
         </transports>
         ...
      </ldapServer>
    4. 找到 partitions 內容並為 samplePartitionConfiguration 新增一個子項目,如下所示。
      <partitions> 	
         ...
            <jdbmPartition id="sample" cacheSize="100" suffix="o=sample"
                           optimizerEnabled="true" syncOnWrite="true">
               <indexedAttributes>
                  <jdbmIndex attributeId="uid" cacheSize="100"/>
                  <jdbmIndex attributeId="ou" cacheSize="100"/>
                  <jdbmIndex attributeId="objectClass" cacheSize="100"/>
               </indexedAttributes>
            </jdbmPartition>
         ...
      </partitions>
    5. 儲存更新的 server.xml 檔。
  5. 啟動目錄伺服器。

意見