]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-passwd/init.c
Add missing progname argument to fprintf
[openldap] / servers / slapd / back-passwd / init.c
index 8db2b97d79a0395d1aee5c278457f214705573b8..ea500d7b3cea4b35e113ae16a520f9b99250ce4e 100644 (file)
 #include "external.h"
 
 #ifdef SLAPD_PASSWD_DYNAMIC
-#include <gmodule.h>
 
-G_MODULE_EXPORT void init_module(int argc, char *argv[]) {
-   BackendInfo bi;
+int back_passwd_LTX_init_module(int argc, char *argv[]) {
+    BackendInfo bi;
 
-   bi.bi_type = "passwd";
-   bi.bi_init = passwd_back_initialize;
+    memset( &bi, 0, sizeof(bi) );
+    bi.bi_type = "passwd";
+    bi.bi_init = passwd_back_initialize;
 
-   backend_add(&bi);
+    backend_add(&bi);
+    return 0;
 }
 
 #endif /* SLAPD_PASSWD_DYNAMIC */
@@ -49,9 +50,7 @@ passwd_back_initialize(
        bi->bi_op_delete = 0;
        bi->bi_op_abandon = 0;
 
-#ifdef SLAPD_ACLGROUPS
        bi->bi_acl_group = 0;
-#endif
 
        bi->bi_connection_init = 0;
        bi->bi_connection_destroy = 0;