mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Add calls to module_init/module_kill to support dynamically loaded backends.
This commit is contained in:
parent
bec2237439
commit
7666bb7482
1 changed files with 10 additions and 0 deletions
|
|
@ -181,6 +181,13 @@ slap_tool_init(
|
|||
* initialize stuff and figure out which backend we're dealing with
|
||||
*/
|
||||
|
||||
#ifdef SLAPD_MODULES
|
||||
if ( module_init() != 0 ) {
|
||||
fprintf( stderr, "%s: module_init failed!\n", progname );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#endif
|
||||
|
||||
rc = slap_init( mode, progname );
|
||||
|
||||
if (rc != 0 ) {
|
||||
|
|
@ -278,6 +285,9 @@ void slap_tool_destroy( void )
|
|||
{
|
||||
slap_shutdown( be );
|
||||
slap_destroy();
|
||||
#ifdef SLAPD_MODULES
|
||||
module_kill();
|
||||
#endif
|
||||
schema_destroy();
|
||||
#ifdef HAVE_TLS
|
||||
ldap_pvt_tls_destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue