[Date Prev][Date Next] [Chronological] [Thread] [Top]

back-monitor/init.c is missing init_module routine (ITS#2048)



Full_Name: Peter Marschall
Version: 2.1.4
OS: Linux 2.4.x
URL: 
Submission from: (NULL) (80.133.252.80)


back-monitor/init.c is missing a init_module() routine wchich does not allow it
to create a dynamically loadable back_monitor.so

Stealing and adapting a init_module routine from other backends does the trick:

#ifdef SLAPD_MONITOR_DYNAMIC

int back_monitor_LTX_init_module(int argc, char *argv[]) {
    BackendInfo bi;

    memset( &bi, '\0', sizeof(bi) );
    bi.bi_type = "monitor";
    bi.bi_init = monitor_back_initialize;

    backend_add(&bi);
    return 0;
}

#endif /* SLAPD_MONITOR_DYNAMIC */