Builtin and custom backends can be built as dynamic modules and loaded by means of the moduleload <module> statement.
Builtin backends: use the
--enable-<backend>=mod
switch at configure.
Custom backends: simply write a module that implements the backend functionalities and add a function
static BackendInfo bi;
int
init_module( int argc, char *argv[] )
{
memset( &bi, '\0', sizeof( bi ) );
bi.bi_type = "custom" ;
bi.bi_init = custom_back_initialize;
backend_add( &bi );
return 0;
}
so that the custom backend initialization function custom_back_initialize() is invoked when the module is loaded. Replace custom with your backend's name.
ando@sys-net.it, hyc@openldap.org |