1 /* init.c - initialize sock backend */
2 /* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/init.c,v 1.4.2.1 2008/02/09 00:46:09 quanah Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2007-2008 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>.
17 * This work was initially developed by Brian Candler for inclusion
18 * in OpenLDAP Software.
25 #include <ac/socket.h>
28 #include "back-sock.h"
40 bi
->bi_db_init
= sock_back_db_init
;
44 bi
->bi_db_destroy
= sock_back_db_destroy
;
46 bi
->bi_op_bind
= sock_back_bind
;
47 bi
->bi_op_unbind
= sock_back_unbind
;
48 bi
->bi_op_search
= sock_back_search
;
49 bi
->bi_op_compare
= sock_back_compare
;
50 bi
->bi_op_modify
= sock_back_modify
;
51 bi
->bi_op_modrdn
= sock_back_modrdn
;
52 bi
->bi_op_add
= sock_back_add
;
53 bi
->bi_op_delete
= sock_back_delete
;
54 bi
->bi_op_abandon
= 0;
58 bi
->bi_chk_referrals
= 0;
60 bi
->bi_connection_init
= 0;
61 bi
->bi_connection_destroy
= 0;
63 return sock_back_init_cf( bi
);
69 struct config_reply_s
*cr
74 si
= (struct sockinfo
*) ch_calloc( 1, sizeof(struct sockinfo
) );
77 be
->be_cf_ocs
= be
->bd_info
->bi_cf_ocs
;
85 struct config_reply_s
*cr
88 free( be
->be_private
);
92 #if SLAPD_SOCK == SLAPD_MOD_DYNAMIC
94 /* conditionally define the init_module() function */
95 SLAP_BACKEND_INIT_MODULE( sock
)
97 #endif /* SLAPD_SOCK == SLAPD_MOD_DYNAMIC */