]> git.sur5r.net Git - openldap/blob - servers/slapd/back-passwd/init.c
8db2b97d79a0395d1aee5c278457f214705573b8
[openldap] / servers / slapd / back-passwd / init.c
1 /* init.c - initialize passwd backend */
2
3 #include "portable.h"
4
5 #include <stdio.h>
6
7 #include <ac/socket.h>
8
9 #include "slap.h"
10 #include "external.h"
11
12 #ifdef SLAPD_PASSWD_DYNAMIC
13 #include <gmodule.h>
14
15 G_MODULE_EXPORT void init_module(int argc, char *argv[]) {
16    BackendInfo bi;
17
18    bi.bi_type = "passwd";
19    bi.bi_init = passwd_back_initialize;
20
21    backend_add(&bi);
22 }
23
24 #endif /* SLAPD_PASSWD_DYNAMIC */
25
26 int
27 passwd_back_initialize(
28     BackendInfo *bi
29 )
30 {
31         bi->bi_open = 0;
32         bi->bi_config = 0;
33         bi->bi_close = 0;
34         bi->bi_destroy = 0;
35
36         bi->bi_db_init = 0;
37         bi->bi_db_config = 0;
38         bi->bi_db_open = 0;
39         bi->bi_db_close = 0;
40         bi->bi_db_destroy = 0;
41
42         bi->bi_op_bind = 0;
43         bi->bi_op_unbind = 0;
44         bi->bi_op_search = passwd_back_search;
45         bi->bi_op_compare = 0;
46         bi->bi_op_modify = 0;
47         bi->bi_op_modrdn = 0;
48         bi->bi_op_add = 0;
49         bi->bi_op_delete = 0;
50         bi->bi_op_abandon = 0;
51
52 #ifdef SLAPD_ACLGROUPS
53         bi->bi_acl_group = 0;
54 #endif
55
56         bi->bi_connection_init = 0;
57         bi->bi_connection_destroy = 0;
58
59         return 0;
60 }