#include "slap.h"
#include "lber_pvt.h"
+#ifdef LDAP_SLAPI
+#include "slapi.h"
+#endif
/*
* read-only global variables or variables only written by the listener
if( rc == 0 ) {
rc = backend_init( );
}
+
+#ifdef LDAP_SLAPI
+ if( rc == 0 ) {
+ Slapi_PBlock *pb = slapi_pblock_new();
+
+ rc = doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb );
+ slapi_pblock_destroy( pb );
+ }
+#endif /* LDAP_SLAPI */
+
break;
default:
int slap_shutdown( Backend *be )
{
int rc;
+#ifdef LDAP_SLAPI
+ Slapi_PBlock *pb;
+#endif
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, CRIT,
/* let backends do whatever cleanup they need to do */
rc = backend_shutdown( be );
+#ifdef LDAP_SLAPI
+ pb = slapi_pblock_new( );
+ (void) doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb );
+ slapi_pblock_destroy( pb );
+#endif /* LDAP_SLAPI */
+
return rc;
}