无法使用 DSCC 执行此任务。请使用命令行,如以下过程所述。
在实例路径中的某个位置创建 hosts.allow 文件或 hosts.deny 文件。
例如,在 instance-path/config 中创建此文件。请确保所创建的文件格式符合 hosts_access(4)。
设置该访问文件的路径。
$ 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. |