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

Procedure啟用 TCP 包裝

無法使用 DSCC 執行此作業。請依照此程序中的說明使用指令行。

  1. 在實例路徑內,建立 hosts.allow 檔案或 hosts.deny 檔案。

    例如,您可以在 instance-path/config 中建立檔案。請確定您所建立的檔案格式符合 hosts_access(4)

  2. 設定存取檔案的路徑。


    $ dsconf set-server-prop -h host -p port host-access-dir-path:path-to-file
    

    例如︰


    $ dsconf set-server-prop -h host -p port host-access-dir-path:/local/ds1/config
    "host-access-dir-path" property has been set to "/local/ds1/config".
    The "/local/ds1/config" directory on host1 must contain valid hosts.allow
    and/or hosts.deny files.
    Directory Server must be restarted for changes to take effect.