HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Note:
Refer to the following source file for example entry store and entry fetch plug-in functions:
/opt/dirsrv/devel/example/testentry.c
9.3 Registering entry store/fetch functions
Unlike most other types of plug-in functions, you do not set the function name in the parameter
block in order to register an entry store or entry fetch plug-in function. Instead, you specify the
function name directly in the server configuration file.
Procedure 9-1 To register an entry store or entry fetch plug-in function:
1. Shut down the server.
2. Add the plug-in parameters to the dse.ldif file.
3. Restart the server. (Refer to Chapter 3 “Configuring plug-ins” for details.)
For example, your plug-in entry might appear as follows:
dn: cn=Test entry,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: Test entry
nsslapd-pluginPath: /opt/dirsrv/devel/example/libtest-plugin.so
nsslapd-pluginInitfunc: testentry_init
nsslapd-pluginType: ldbmentryfetchstore
nsslapd-pluginEnabled: on
nsslapd-pluginId: test-entry
Refer to the following source file for an example plug-in function that implements entry store
and entry fetch operations:
/opt/dirsrv/devel/example/testentry.c
82 Writing entry store/fetch plug-ins