6.2. 某些插件的可选属性
6.2.1. nsslapd-dynamic-plugins
您可以在不重启实例的情况下动态启用一些目录服务器插件。在 Directory Server 中启用 nsslapd-dynamic-plugins
属性以允许动态插件。默认情况下禁用动态插件。
Red Hat Directory Server 不支持动态插件。仅用于测试和调试目的。
您无法将一些插件配置为动态插件。要启用这样的插件,请重启实例。
插件参数 | 描述 |
---|---|
条目 DN | cn=config |
有效值 | on | off |
默认值 | off |
语法 | DirectoryString |
示例 | nsslapd-dynamic-plugins: on |
6.2.2. nsslapd-pluginConfigArea
有些插件条目是容器条目,插件的多个实例在 cn=plugins,cn=config
中的此容器下创建。但是,cn=plugins,cn=config
没有复制,这意味着必须在每个目录服务器实例上手动配置这些容器条目下的插件配置。
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 |
6.2.3. nsslapd-plugin-depends-on-named
用于确保服务器以正确顺序调用插件的多值属性。取与插件 cn
值对应的值。此插件之前,服务器将由服务器启动与以下值匹配的 cn
值。如果插件不存在,服务器无法启动。以下 postoperation referential Integrity 插件示例显示了在 Roles 之前启动 Views 插件。如果缺少 Views,服务器将不会启动。
插件参数 | 描述 |
---|---|
条目 DN | cn=referential integrity postoperation,cn=plugins,cn=config |
有效值 | 服务类 |
默认值 | |
语法 | DirectoryString |
示例 | * nsslapd-plugin-depends-on-named: Views * nsslapd-pluginId: roles |
6.2.4. nsslapd-plugin-depends-on-type
用于确保服务器以正确顺序调用插件的多值属性。取与插件类型对应的值,它包含在 nsslapd-pluginType
属性中。如需更多信息,请参阅 第 6.1.9 节 “nsslapd-pluginType”。所有带有 type 值的插件,与以下有效范围内的其中一个值匹配,服务器将在此插件之前由服务器启动。以下 postoperation referential Integrity 插件示例显示,数据库插件将在 postoperation referential Integrity 插件之前启动。
插件参数 | 描述 |
---|---|
条目 DN | cn=referential integrity postoperation,cn=plugins,cn=config |
有效值 | database |
默认值 | |
语法 | DirectoryString |
示例 | nsslapd-plugin-depends-on-type: database |
6.2.5. nsslapd-pluginLoadGlobal
此属性指定依赖库中的符号是否在本地可见(false
)还是可执行文件以及所有共享对象(true
)。
插件参数 | 描述 |
---|---|
条目 DN | cn=plug-in name,cn=plugins,cn=config |
有效值 | true | false |
默认值 | false |
语法 | DirectoryString |
示例 | nsslapd-pluginLoadGlobal: false |
6.2.6. nsslapd-pluginLoadNow
此属性指定是否加载插件使用的所有符号(为 ),以及这些符号引用的所有符号,或在第一次使用符号时加载符号(false
)。
插件参数 | 描述 |
---|---|
条目 DN | cn=plug-in name,cn=plugins,cn=config |
有效值 | true | false |
默认值 | false |
语法 | DirectoryString |
示例 | nsslapd-pluginLoadNow: false |