1 /* init.c - initialize ldap backend */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2000-2004 The OpenLDAP Foundation.
6 * Portions Copyright 2000-2003 Kurt D. Zeilenga.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in the file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
18 * This work was originally developed by Kurt D. Zeilenga for inclusion
19 * in OpenLDAP Software.
26 #include <ac/socket.h>
29 #include "proto-dnssrv.h"
33 dnssrv_back_initialize(
36 static char *controls[] = {
37 LDAP_CONTROL_MANAGEDSAIT,
38 LDAP_CONTROL_VALUESRETURNFILTER,
42 bi->bi_controls = controls;
50 bi->bi_db_destroy = 0;
51 bi->bi_db_config = dnssrv_back_db_config;
55 bi->bi_chk_referrals = dnssrv_back_referrals;
57 bi->bi_op_bind = dnssrv_back_bind;
58 bi->bi_op_search = dnssrv_back_search;
59 bi->bi_op_compare = 0 /* dnssrv_back_compare */;
64 bi->bi_op_abandon = 0;
69 bi->bi_connection_init = 0;
70 bi->bi_connection_destroy = 0;
83 dnssrv_back_db_destroy(
89 #if SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC
92 init_module( int argc, char *argv[] )
96 memset( &bi, '\0', sizeof( bi ) );
97 bi.bi_type = "dnssrv";
98 bi.bi_init = dnssrv_back_initialize;
105 #endif /* SLAPD_DNSSRV */