1 /* init.c - initialize shell backend */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2009 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in the file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
16 /* Portions Copyright (c) 1995 Regents of the University of Michigan.
17 * All rights reserved.
19 * Redistribution and use in source and binary forms are permitted
20 * provided that this notice is preserved and that due credit is given
21 * to the University of Michigan at Ann Arbor. The name of the University
22 * may not be used to endorse or promote products derived from this
23 * software without specific prior written permission. This software
24 * is provided ``as is'' without express or implied warranty.
27 * This work was originally developed by the University of Michigan
28 * (as part of U-MICH LDAP).
35 #include <ac/socket.h>
44 shell_back_initialize(
53 bi->bi_db_init = shell_back_db_init;
54 bi->bi_db_config = shell_back_db_config;
57 bi->bi_db_destroy = shell_back_db_destroy;
59 bi->bi_op_bind = shell_back_bind;
60 bi->bi_op_unbind = shell_back_unbind;
61 bi->bi_op_search = shell_back_search;
62 bi->bi_op_compare = shell_back_compare;
63 bi->bi_op_modify = shell_back_modify;
64 bi->bi_op_modrdn = shell_back_modrdn;
65 bi->bi_op_add = shell_back_add;
66 bi->bi_op_delete = shell_back_delete;
67 bi->bi_op_abandon = 0;
71 bi->bi_chk_referrals = 0;
73 bi->bi_connection_init = 0;
74 bi->bi_connection_destroy = 0;
87 si = (struct shellinfo *) ch_calloc( 1, sizeof(struct shellinfo) );
95 shell_back_db_destroy(
100 free( be->be_private );
104 #if SLAPD_SHELL == SLAPD_MOD_DYNAMIC
106 /* conditionally define the init_module() function */
107 SLAP_BACKEND_INIT_MODULE( shell )
109 #endif /* SLAPD_SHELL == SLAPD_MOD_DYNAMIC */