1 /* init.c - initialize shell backend */
13 #ifdef SLAPD_SHELL_DYNAMIC
15 int back_shell_LTX_init_module(int argc, char *argv[]) {
18 memset( &bi, 0, sizeof(bi) );
20 bi.bi_init = shell_back_initialize;
26 #endif /* SLAPD_SHELL_DYNAMIC */
29 shell_back_initialize(
38 bi->bi_db_init = shell_back_db_init;
39 bi->bi_db_config = shell_back_db_config;
42 bi->bi_db_destroy = shell_back_db_destroy;
44 bi->bi_op_bind = shell_back_bind;
45 bi->bi_op_unbind = shell_back_unbind;
46 bi->bi_op_search = shell_back_search;
47 bi->bi_op_compare = shell_back_compare;
48 bi->bi_op_modify = shell_back_modify;
49 bi->bi_op_modrdn = shell_back_modrdn;
50 bi->bi_op_add = shell_back_add;
51 bi->bi_op_delete = shell_back_delete;
52 bi->bi_op_abandon = shell_back_abandon;
58 #ifdef HAVE_CYRUS_SASL
59 bi->bi_sasl_authorize = 0;
60 bi->bi_sasl_getsecret = 0;
61 bi->bi_sasl_putsecret = 0;
62 #endif /* HAVE_CYRUS_SASL */
64 bi->bi_connection_init = 0;
65 bi->bi_connection_destroy = 0;
77 si = (struct shellinfo *) ch_calloc( 1, sizeof(struct shellinfo) );
85 shell_back_db_destroy(
89 free( be->be_private );