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

修改目录代理服务器的配置

本部分介绍如何修改目录代理服务器的配置。

Procedure修改目录代理服务器的配置

可使用 DSCC 执行此任务。有关信息,请参见目录服务控制中心界面和 DSCC 联机帮助。

  1. 查找目录代理服务器的当前配置。


    $ dpconf get-server-prop -h host -p port
    

    或者,查看一个或多个配置属性的当前设置。


    $ dpconf get-server-prop -h host -p port property-name ...

    例如,通过运行以下命令确定是否允许未经验证的操作:


    $ dpconf get-server-prop -h host -p port allow-unauthenticated-operations
    allow-unauthenticated-operations  :  true
  2. 更改一个或多个配置参数。


    $ dpconf set-server-prop -h host -p port property:value ...

    例如,通过运行以下命令禁止未经验证的操作:


    $ dpconf set-server-prop -h host -p port allow-unauthenticated-operations:false

    如果您尝试执行非法更改,则此更改将不会生效。例如,如果将 allow-unauthenticated-operations 参数设置为 f 而不是 false,则会产生以下错误:


    $ dpconf set-server-prop -h host -p port allow-unauthenticated-operations:f
    The value "f" is not a valid value for the property "allow-unauthenticated-operations".
    Allowed property values: BOOLEAN
    The "set-server-prop" operation failed.
  3. 重新启动目录代理服务器实例以使更改生效(如有必要)。

    有关重新启动目录代理服务器的信息,请参见重新启动目录代理服务器

显示目录代理服务器实例配置信息

要显示目录代理服务器实例配置,请键入 dpconf info


$ dpconf info
Instance Path           :  instance path
Host Name               :  host
Secure listen address   :  IP address
Port                    :  port
Secure port             :  secure port
SSL server certificate  :  defaultServerCert

Directory Proxy Server needs to be restarted.

只有将 Secure listen addressNon-secure listen address 设置为非默认值时,dpconf info 才会显示这些属性。上面的输出不显示 Non-secure listen address,因为未将此属性设置为非默认值。

如果需要重新启动实例,dpconf info 还会提醒用户重新启动。

也可以使用 dpadm info 来显示目录代理服务器实例配置信息。