return 0;
}
-#if (SLAPD_BDB == SLAPD_MOD_DYNAMIC && !defined(BDB_HIER)) || \
- (SLAPD_HDB == SLAPD_MOD_DYNAMIC && defined(BDB_HIER))
-int init_module( int argc, char *argv[] ) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
-#ifdef BDB_HIER
- bi.bi_type = "hdb";
-#else
- bi.bi_type = "bdb";
-#endif
- bi.bi_init = bdb_back_initialize;
-
- backend_add( &bi );
- return 0;
-}
-#endif /* SLAPD_BDB */
-
int
bdb_back_initialize(
BackendInfo *bi )
return 0;
}
+
+#if (SLAPD_BDB == SLAPD_MOD_DYNAMIC && !defined(BDB_HIER)) || \
+ (SLAPD_HDB == SLAPD_MOD_DYNAMIC && defined(BDB_HIER))
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+#ifdef BDB_HIER
+ bi.bi_type = "hdb";
+#else
+ bi.bi_type = "bdb";
+#endif
+ bi.bi_init = bdb_back_initialize;
+
+ backend_add( &bi );
+ return 0;
+}
+#endif /* SLAPD_BDB */
+
#include "proto-dnssrv.h"
#include "external.h"
-#if SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC
-
-int init_module(int argc, char *argv[])
-{
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "dnssrv";
- bi.bi_init = dnssrv_back_initialize;
-
- backend_add( &bi );
- return 0;
-}
-
-#endif /* SLAPD_DNSSRV */
-
int
dnssrv_back_initialize(
BackendInfo *bi )
{
return 0;
}
+
+#if SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "dnssrv";
+ bi.bi_init = dnssrv_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_DNSSRV */
+
#include "back-ldap.h"
#include "external.h"
-#if SLAPD_LDAP == SLAPD_MOD_DYNAMIC
-int
-init_module( int argc, char *argv[] )
-{
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof( bi ) );
- bi.bi_type = "ldap";
- bi.bi_init = ldap_back_initialize;
-
- backend_add( &bi );
-
- return 0;
-}
-
-#endif /* SLAPD_LDAP */
-
int
ldap_back_open( BackendInfo *bi )
{
return 0;
}
+
+#if SLAPD_LDAP == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "ldap";
+ bi.bi_init = ldap_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_LDAP */
+
#include "back-ldbm.h"
#include "external.h"
-#if SLAPD_LDBM == SLAPD_MOD_DYNAMIC
-
-int init_module(int argc, char *argv[]) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "ldbm";
- bi.bi_init = ldbm_back_initialize;
-
- backend_add(&bi);
- return 0;
-}
-
-#endif /* SLAPD_LDBM */
-
int
ldbm_back_initialize(
BackendInfo *bi
return 0;
}
+
+#if SLAPD_LDBM == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof(bi) );
+ bi.bi_type = "ldbm";
+ bi.bi_init = ldbm_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_LDBM */
+
+
#include "back-meta.h"
#include "external.h"
-#if SLAPD_META == SLAPD_MOD_DYNAMIC
-
-int
-init_module( int argc, char *argv[] ) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof( bi ) );
- bi.bi_type = "meta";
- bi.bi_init = meta_back_initialize;
-
- backend_add( &bi );
- return 0;
-}
-
-#endif /* SLAPD_META */
-
int
meta_back_open(
BackendInfo *bi
return 0;
}
+#if SLAPD_META == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "meta";
+ bi.bi_init = meta_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_META */
+
+
}, { NULL }
};
-#if SLAPD_MONITOR == SLAPD_MOD_DYNAMIC
-
-int
-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 */
-
int
monitor_back_register_subsys( monitor_subsys_t *ms )
{
return 0;
}
+#if SLAPD_MONITOR == SLAPD_MOD_DYNAMIC
+
+int
+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 */
+
+
}
#if SLAPD_NULL == SLAPD_MOD_DYNAMIC
-int init_module(
- int argc,
- char *argv[] )
+
+int
+init_module( int argc, char *argv[] )
{
- BackendInfo bi;
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "null";
+ bi.bi_init = null_back_initialize;
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "null";
- bi.bi_init = null_back_initialize;
+ backend_add( &bi );
- backend_add(&bi);
- return 0;
+ return 0;
}
+
#endif /* SLAPD_NULL */
ldap_pvt_thread_mutex_t passwd_mutex;
-#if SLAPD_PASSWD == SLAPD_MOD_DYNAMIC
-
-int init_module(int argc, char *argv[]) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "passwd";
- bi.bi_init = passwd_back_initialize;
-
- backend_add(&bi);
- return 0;
-}
-
-#endif /* SLAPD_PASSWD */
-
int
passwd_back_initialize(
BackendInfo *bi
ldap_pvt_thread_mutex_destroy( &passwd_mutex );
return 0;
}
+
+#if SLAPD_PASSWD == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "passwd";
+ bi.bi_init = passwd_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_PASSWD */
+
PerlInterpreter *PERL_INTERPRETER = NULL;
ldap_pvt_thread_mutex_t perl_interpreter_mutex;
-#if SLAPD_PERL == SLAPD_MOD_DYNAMIC
-
-int init_module(int argc, char *argv[])
-{
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "perl";
- bi.bi_init = perl_back_initialize;
-
- backend_add(&bi);
- return 0;
-}
-
-#endif /* SLAPD_PERL */
-
/**********************************************************
*
dXSUB_SYS;
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
}
+
+#if SLAPD_PERL == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "perl";
+ bi.bi_init = perl_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_PERL */
+
+
#include "back-relay.h"
#include "external.h"
-#if SLAPD_RELAY == SLAPD_MOD_DYNAMIC
-
-int
-init_module( int argc, char *argv[] ) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof( bi ) );
- bi.bi_type = "relay";
- bi.bi_init = relay_back_initialize;
-
- backend_add(&bi);
- return 0;
-}
-
-#endif /* SLAPD_RELAY */
-
int
relay_back_initialize( BackendInfo *bi )
{
return 0;
}
+#if SLAPD_RELAY == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "relay";
+ bi.bi_init = relay_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_RELAY */
+
#include "shell.h"
#include "external.h"
-#if SLAPD_SHELL == SLAPD_MOD_DYNAMIC
-
-int init_module(int argc, char *argv[]) {
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof(bi) );
- bi.bi_type = "shell";
- bi.bi_init = shell_back_initialize;
-
- backend_add(&bi);
- return 0;
-}
-
-#endif /* SLAPD_SHELL */
-
int
shell_back_initialize(
BackendInfo *bi
free( be->be_private );
return 0;
}
+
+#if SLAPD_SHELL == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "shell";
+ bi.bi_init = shell_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_SHELL */
+
#include "proto-sql.h"
#include "external.h"
-#if SLAPD_SQL == SLAPD_MOD_DYNAMIC
-
-int
-init_module(
- int argc,
- char *argv[] )
-{
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof( bi ) );
- bi.bi_type = "sql";
- bi.bi_init = sql_back_initialize;
-
- backend_add( &bi );
- return 0;
-}
-
-#endif /* SLAPD_SQL == SLAPD_MOD_DYNAMIC */
-
int
sql_back_initialize(
BackendInfo *bi )
return 0;
}
+#if SLAPD_SQL == SLAPD_MOD_DYNAMIC
+
+int
+init_module( int argc, char *argv[] )
+{
+ BackendInfo bi;
+
+ memset( &bi, '\0', sizeof( bi ) );
+ bi.bi_type = "sql";
+ bi.bi_init = sql_back_initialize;
+
+ backend_add( &bi );
+
+ return 0;
+}
+
+#endif /* SLAPD_SQL == SLAPD_MOD_DYNAMIC */
+
#endif /* SLAPD_SQL */