1 /* init.c - initialize ldap backend */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2000-2012 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>
28 #include <ac/string.h>
32 #include "proto-dnssrv.h"
35 dnssrv_back_initialize(
38 static char *controls[] = {
39 LDAP_CONTROL_MANAGEDSAIT,
43 bi->bi_controls = controls;
45 bi->bi_open = dnssrv_back_open;
51 bi->bi_db_destroy = 0;
52 bi->bi_db_config = 0 /* dnssrv_back_db_config */;
56 bi->bi_chk_referrals = dnssrv_back_referrals;
58 bi->bi_op_bind = dnssrv_back_bind;
59 bi->bi_op_search = dnssrv_back_search;
60 bi->bi_op_compare = 0 /* dnssrv_back_compare */;
65 bi->bi_op_abandon = 0;
70 bi->bi_connection_init = 0;
71 bi->bi_connection_destroy = 0;
73 bi->bi_access_allowed = slap_access_always_allowed;
78 AttributeDescription *ad_dc;
79 AttributeDescription *ad_associatedDomain;
87 (void)slap_str2ad( "dc", &ad_dc, &text );
88 (void)slap_str2ad( "associatedDomain", &ad_associatedDomain, &text );
102 dnssrv_back_db_destroy(
109 #if SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC
111 /* conditionally define the init_module() function */
112 SLAP_BACKEND_INIT_MODULE( dnssrv )
114 #endif /* SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC */