配置与 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. 下载和安装位于以下 Web 站点的 ApacheDS 1.5.7 目录服务器和 Studio 1.5.3 客户端:http://directory.apache.org/

    有关其他安装信息,请参阅 Basic User's Guide。在“Windows 下载”页的左侧窗格中有到 Basic User's Guide 的链接。

  2. 确保已启用与服务器关联的硬件概要文件。
    1. 在 Windows 中打开“控制面板”。
    2. 双击管理工具 > 服务 > Apacheds 将显示“Apacheds 属性(本地机)”对话框。
    3. 单击登录选项卡。如果已禁用所列的任何概要文件。选择概要文件名,然后单击启用
    4. 单击确定
  3. 验证是否可以启动目录服务器。在“服务”对话框中,右键单击 Apacheds,然后单击启动

    如果服务器已启动,请将其停止。如果服务器未启动,请重新执行此过程。如果服务器仍然未启动,您可能需要查找与 LDAP 兼容的备用服务器以进行演示。

  4. 要将 EGL 样本数据与 ApacheDS 服务器中的任何其他数据进行隔离,请在此服务器中创建新分区。要创建新分区:
    1. 在 ApacheDS 1.5.7 目录服务器的安装目录(例如,c:\Program Files\Apache)中,转至 conf 文件夹。
    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"/>
            <tcpTransport 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. 启动目录服务器。

反馈