您可以使用 DSCC 执行此任务。有关信息,请参见目录服务控制中心界面和 DSCC 联机帮助。
在后缀上重新编制全部索引。
$ dsconf reindex -h host -p port suffix-DN
例如,要在 dc=example,dc=com 后缀上初始化全部索引,请使用以下命令:
$ dsconf reindex -h host -p port dc=example,dc=com