Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 55

Table of Contents

Advertisement

Passing Extra Arguments to Plug-ins
Use the plug-in start function (registered in the initialization function with
using
) to use the custom
slapi_pblock_set()
SLAPI_PLUGIN_START_FN
configuration. One of the pblock parameters passed to the start function is the
plug-in entry, as the
parameter. The
SLAPI_ADD_TARGET
slapi_entry_attr_*
family of functions can be used to get and use these values.
Plug-ins can be dynamically configured at run-time by registering DSE callbacks
for the plug-in entry with
.
slapi_config_register_callback()
Example 1:
dn: cn=Test ExtendedOp,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: Test ExtendedOp
nsslapd-pluginPath: /opt/redhat-ds/servers/plugins/slapd/slapi/
examples/libtest-plugin.so
nsslapd-pluginInitfunc: testexop_init
nsslapd-pluginType: extendedop
nsslapd-pluginEnabled: on
nsslapd-plugin-depends-on-type: database
nsslapd-pluginId: test-extendedop
nsslapd-pluginarg0: 1.2.3.4
Example 2:
dn: cn=PAM Pass Through Auth,cn=plugins,cn=config
objectclass: top
objectclass: nsSlapdPlugin
objectclass: extensibleObject
objectclass: pamConfig
cn: PAM Pass Through Auth
nsslapd-pluginpath: /opt/redhat-ds/lib/pam-passthru-plugin.so
nsslapd-plugininitfunc: pam_passthruauth_init
nsslapd-plugintype: preoperation
nsslapd-pluginenabled: on
nsslapd-pluginLoadGlobal: true
nsslapd-plugin-depends-on-type: database
pamMissingSuffix: ALLOW
pamExcludeSuffix: o=NetscapeRoot
pamExcludeSuffix: cn=config
pamMapMethod: RDN
pamFallback: FALSE
pamSecure: TRUE
pamService: ldapserver
Chapter 3
Configuring Plug-ins
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents