]> git.sur5r.net Git - openldap/blob - servers/slapd/back-passwd/init.c
wrap bi_acl_group in #ifdef SLAPD_ACLGROUPS
[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 int
13 passwd_back_initialize(
14     BackendInfo *bi
15 )
16 {
17         bi->bi_open = NULL;
18         bi->bi_config = NULL;
19         bi->bi_close = NULL;
20         bi->bi_destroy = NULL;
21
22         bi->bi_db_init = NULL;
23         bi->bi_db_config = NULL;
24         bi->bi_db_open = NULL;
25         bi->bi_db_close = NULL;
26         bi->bi_db_destroy = NULL;
27
28         bi->bi_op_bind = NULL;
29         bi->bi_op_unbind = NULL;
30         bi->bi_op_search = passwd_back_search;
31         bi->bi_op_compare = NULL;
32         bi->bi_op_modify = NULL;
33         bi->bi_op_modrdn = NULL;
34         bi->bi_op_add = NULL;
35         bi->bi_op_delete = NULL;
36         bi->bi_op_abandon = NULL;
37
38 #ifdef SLAPD_ACLGROUPS
39         bi->bi_acl_group = NULL;
40 #endif
41
42         return 0;
43 }