r2321: add complately untested LDAP server start
[tprouty/samba.git] / source4 / ldap_server / ldap_server.h
1 /* 
2    Unix SMB/CIFS implementation.
3    LDAP server
4    Copyright (C) Volker Lendecke 2004
5    Copyright (C) Stefan Metzmacher 2004
6    
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 struct ldap_message_queue {
23         struct ldap_message_queue *prev, *next;
24         struct ldap_message *msg;
25 };
26
27 struct rw_buffer {
28         uint8_t *data;
29         size_t ofs, length;
30 };
31
32 struct ldapsrv_connection {
33         struct server_connection *connection;
34
35         struct gensec_security *gensec_ctx;
36
37         struct auth_session_info *session_info;
38
39         struct rw_buffer in_buffer;
40         struct rw_buffer out_buffer;
41         struct ldap_message_queue *in_queue;
42         struct ldap_message_queue *out_queue;
43 };