* 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 ) {
{
slap_shutdown( be );
slap_destroy();
+#ifdef SLAPD_MODULES
+ if ( slapMode == SLAP_SERVER_MODE ) {
+ /* always false. just pulls in necessary symbol references. */
+ lutil_uuidstr(NULL, 0);
+ }
+ module_kill();
+#endif
schema_destroy();
#ifdef HAVE_TLS
ldap_pvt_tls_destroy();