]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldap/back-ldap.h
New backend routine: back_attribute
[openldap] / servers / slapd / back-ldap / back-ldap.h
1 /* back-ldap.h - ldap backend header file */
2 /* $OpenLDAP$ */
3
4 /*
5  * Copyright 1999, Howard Chu, All rights reserved. <hyc@highlandsun.com>
6  * 
7  * Permission is granted to anyone to use this software for any purpose
8  * on any computer system, and to alter it and redistribute it, subject
9  * to the following restrictions:
10  * 
11  * 1. The author is not responsible for the consequences of use of this
12  *    software, no matter how awful, even if they arise from flaws in it.
13  * 
14  * 2. The origin of this software must not be misrepresented, either by
15  *    explicit claim or by omission.  Since few users ever read sources,
16  *    credits should appear in the documentation.
17  * 
18  * 3. Altered versions must be plainly marked as such, and must not be
19  *    misrepresented as being the original software.  Since few users
20  *    ever read sources, credits should appear in the documentation.
21  * 
22  * 4. This notice may not be removed or altered.
23  */
24
25 #ifndef SLAPD_LDAP_H
26 #define SLAPD_LDAP_H
27
28 #include "external.h"
29
30 LDAP_BEGIN_DECL
31
32 struct slap_conn;
33 struct slap_op;
34
35 struct ldapconn {
36         struct ldapconn *next;
37         struct slap_conn        *conn;
38         LDAP            *ld;
39         int             bound;
40 };
41
42 struct ldapinfo {
43         char *url;
44         char *suffix;
45         char *binddn;
46         char *bindpw;
47         ldap_pvt_thread_mutex_t         conn_mutex;
48         struct ldapconn *lcs;
49 };
50
51 struct ldapconn *ldap_back_getconn(struct ldapinfo *li, struct slap_conn *conn,
52         struct slap_op *op);
53 void ldap_back_dobind(struct ldapconn *lc, Operation *op);
54 int ldap_back_op_result(struct ldapconn *lc, Operation *op);
55 int     back_ldap_LTX_init_module(int argc, char *argv[]);
56
57 LDAP_END_DECL
58
59 #endif