1 /* init.c - initialize shell backend */
4 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 #include <ac/socket.h>
17 #ifdef SLAPD_SHELL_DYNAMIC
19 int init_module(int argc, char *argv[]) {
22 memset( &bi, '\0', sizeof(bi) );
24 bi.bi_init = shell_back_initialize;
30 #endif /* SLAPD_SHELL_DYNAMIC */
33 shell_back_initialize(
42 bi->bi_db_init = shell_back_db_init;
43 bi->bi_db_config = shell_back_db_config;
46 bi->bi_db_destroy = shell_back_db_destroy;
48 bi->bi_op_bind = shell_back_bind;
49 bi->bi_op_unbind = shell_back_unbind;
50 bi->bi_op_search = shell_back_search;
51 bi->bi_op_compare = shell_back_compare;
52 bi->bi_op_modify = shell_back_modify;
53 bi->bi_op_modrdn = shell_back_modrdn;
54 bi->bi_op_add = shell_back_add;
55 bi->bi_op_delete = shell_back_delete;
56 bi->bi_op_abandon = 0;
60 bi->bi_chk_referrals = 0;
62 bi->bi_connection_init = 0;
63 bi->bi_connection_destroy = 0;
75 si = (struct shellinfo *) ch_calloc( 1, sizeof(struct shellinfo) );
83 shell_back_db_destroy(
87 free( be->be_private );