您可以使用 DSCC 执行此任务。有关信息,请参见目录服务控制中心界面和 DSCC 联机帮助。
查看请求过滤策略的属性。
$ dpconf get-request-filtering-policy-prop -h host -p port policy-name |
请求过滤策略的默认属性如下所示:
allow-add-operations : true allow-bind-operations : true allow-compare-operations : true allow-delete-operations : true allow-extended-operations : true allow-inequality-search-operations : true allow-modify-operations : true allow-rename-operations : true allow-search-operations : true allowed-comparable-attrs : all allowed-search-scopes : base allowed-search-scopes : one-level allowed-search-scopes : subtree allowed-subtrees : "" description : - prohibited-comparable-attrs : none prohibited-subtrees : none |
通过设置步骤 1 中列出的一个或多个属性来配置请求过滤策略。
$ dpconf set-request-filtering-policy-prop -h host -p port policy-name \ property:value [property:value ...] |
通过设置步骤 1 中列出的属性,可以配置请求过滤策略的以下功能:
允许客户端执行的操作类型
对客户端公开或隐藏的子树
搜索操作的范围
搜索过滤器的类型
可以或无法在搜索和比较操作中进行比较的属性类型