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