4.3. Certain 插件允许的属性

4.3.1. nsslapd-dynamic-plugins

目录服务器具有可在不重启服务器的情况下启用的动态插件。nsslapd-dynamic-plugins 属性指定服务器是否配置为允许动态插件。默认情况下禁用动态插件。

警告

目录服务器不支持动态插件。仅用于测试和调试目的。

有些插件无法配置为动态,它们需要重启服务器。

插件参数描述

条目 DN

cn=config

有效值

on | off

默认值

off

语法

DirectoryString

示例

nsslapd-dynamic-plugins: on

4.3.2. nsslapd-pluginConfigArea

有些插件条目是容器条目,插件的多个实例在 cn=plugins,cn=config 中的这个容器下创建。但是,cn=plugins,cn=config 没有被复制,这意味着必须在每个 Directory 服务器实例上以某种方式手动配置这些容器条目下的插件配置。

nsslapd-pluginConfigArea 属性指向主数据库区域中的另一容器条目,其中包含插件实例条目。此容器条目可以位于复制的数据库,允许复制插件配置。

插件参数描述

条目 DN

cn=plug-in name,cn=plugins,cn=config

有效值

任何有效的 DN

默认值

 

语法

DN

示例

nsslapd-pluginConfigArea: cn=managed entries container,ou=containers,dc=example,dc=com

4.3.3. nsslapd-pluginLoadNow

此属性指定是否立即加载插件使用的所有符号(true),以及这些符号的所有符号,还是在第一次使用时加载该符号(false)。

插件参数描述

条目 DN

cn=plug-in name,cn=plugins,cn=config

有效值

true | false

默认值

false

语法

DirectoryString

示例

nsslapd-pluginLoadNow: false

4.3.4. nsslapd-pluginLoadGlobal

此属性指定依赖库中的符号是否在本地(false)还是可执行对象以及所有共享对象(true)。

插件参数描述

条目 DN

cn=plug-in name,cn=plugins,cn=config

有效值

true | false

默认值

false

语法

DirectoryString

示例

nsslapd-pluginLoadGlobal: false

4.3.5. nsslapd-plugin-depends-on-type

用于确保服务器以正确顺序调用插件的多值属性。取与插件的类型对应的值,包含在 nsslapd-pluginType 属性中。如需更多信息,请参阅 第 4.2.10 节 “nsslapd-pluginType”。与此插件之前,所有带有类型值且与以下有效范围内的值之一匹配的插件都会被服务器启动。以下合作会参考完整性插件示例,显示数据库插件将在创建后引用完整性插件之前启动。

插件参数描述

条目 DN

cn=referential integrity postoperation,cn=plugins,cn=config

有效值

数据库

默认值

 

语法

DirectoryString

示例

nsslapd-plugin-depends-on-type: database

4.3.6. nsslapd-plugin-depends-on-named

用于确保服务器以正确顺序调用插件的多值属性。取与插件的 cn 值对应的值。此插件之前,服务器将首先启动与以下值匹配的 一 个值的插件。如果插件不存在,服务器无法启动。以下合作引用完整性插件示例显示了在角色之前启动 Views 插件。如果缺少 Views,服务器将不会启动。

插件参数描述

条目 DN

cn=referential integrity postoperation,cn=plugins,cn=config

有效值

Service 类

默认值

 

语法

DirectoryString

示例

* nsslapd-plugin-depends-on-named: Views

* nsslapd-pluginId: roles