2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 2003-2005 The OpenLDAP Foundation.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
11 * A copy of this license is available in the file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
16 * This work was initially developed by the Howard Chu for inclusion
17 * in OpenLDAP Software and subsequently enhanced by Pierangelo
26 extern BI_init ldap_back_initialize;
28 extern BI_open ldap_back_open;
29 extern BI_close ldap_back_close;
30 extern BI_destroy ldap_back_destroy;
32 extern BI_db_init ldap_back_db_init;
33 extern BI_db_open ldap_back_db_open;
34 extern BI_db_destroy ldap_back_db_destroy;
36 extern BI_op_bind ldap_back_bind;
37 extern BI_op_search ldap_back_search;
38 extern BI_op_compare ldap_back_compare;
39 extern BI_op_modify ldap_back_modify;
40 extern BI_op_modrdn ldap_back_modrdn;
41 extern BI_op_add ldap_back_add;
42 extern BI_op_delete ldap_back_delete;
43 extern BI_op_abandon ldap_back_abandon;
44 extern BI_op_extended ldap_back_extended;
46 extern BI_connection_destroy ldap_back_conn_destroy;
48 extern BI_entry_get_rw ldap_back_entry_get;
50 int ldap_back_freeconn( Operation *op, ldapconn_t *lc, int dolock );
51 ldapconn_t *ldap_back_getconn( Operation *op, SlapReply *rs, ldap_back_send_t sendok );
52 void ldap_back_release_conn( Operation *op, SlapReply *rs, ldapconn_t *lc );
53 int ldap_back_dobind( ldapconn_t *lc, Operation *op, SlapReply *rs, ldap_back_send_t sendok );
54 int ldap_back_retry( ldapconn_t **lcp, Operation *op, SlapReply *rs, ldap_back_send_t sendok );
55 int ldap_back_map_result( SlapReply *rs );
56 int ldap_back_op_result( ldapconn_t *lc, Operation *op, SlapReply *rs,
57 ber_int_t msgid, time_t timeout, ldap_back_send_t sendok );
59 int ldap_back_init_cf( BackendInfo *bi );
61 extern int ldap_back_conn_cmp( const void *c1, const void *c2);
62 extern int ldap_back_conn_dup( void *c1, void *c2 );
63 extern void ldap_back_conn_free( void *c );
66 ldap_back_proxy_authz_ctrl(
70 LDAPControl ***pctrls );
73 ldap_back_proxy_authz_ctrl_free(
75 LDAPControl ***pctrls );
77 extern int chain_init( void );
79 extern LDAP_REBIND_PROC *ldap_back_rebind_f;
83 #endif /* PROTO_LDAP_H */