mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Call SLAPI start plugins in slap_startup(), not slap_init(); plugins
aren't loaded at slap_init() time
This commit is contained in:
parent
54392b6527
commit
cbb6117448
1 changed files with 11 additions and 11 deletions
|
|
@ -145,17 +145,6 @@ slap_init( int mode, const char *name )
|
|||
rc = backend_init( );
|
||||
}
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
if( rc == 0 ) {
|
||||
Slapi_PBlock *pb = slapi_pblock_new();
|
||||
|
||||
if ( doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb ) < 0 ) {
|
||||
rc = -1;
|
||||
}
|
||||
slapi_pblock_destroy( pb );
|
||||
}
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -189,6 +178,17 @@ int slap_startup( Backend *be )
|
|||
|
||||
rc = backend_startup( be );
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
if( rc == 0 ) {
|
||||
Slapi_PBlock *pb = slapi_pblock_new();
|
||||
|
||||
if ( doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb ) < 0 ) {
|
||||
rc = -1;
|
||||
}
|
||||
slapi_pblock_destroy( pb );
|
||||
}
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue