2004-09-13 14:36:59 +04:00
/*
Unix SMB / CIFS implementation .
LDAP server
Copyright ( C ) Volker Lendecke 2004
Copyright ( C ) Stefan Metzmacher 2004
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
2005-02-10 10:08:40 +03:00
# include "libcli/ldap/ldap.h"
2005-06-19 13:31:34 +04:00
struct ldapsrv_connection {
struct stream_connection * connection ;
struct gensec_security * gensec ;
struct auth_session_info * session_info ;
struct ldapsrv_service * service ;
2006-01-03 03:10:15 +03:00
struct cli_credentials * server_credentials ;
2006-01-13 03:38:35 +03:00
struct ldb_context * ldb ;
2004-09-13 14:36:59 +04:00
2005-06-19 13:31:34 +04:00
/* are we using gensec wrapping? */
BOOL enable_wrap ;
2004-09-22 14:48:32 +04:00
2005-11-10 04:41:47 +03:00
struct packet_context * packet ;
2006-01-13 03:38:35 +03:00
struct {
int initial_timeout ;
int conn_idle_time ;
int max_page_size ;
int search_timeout ;
struct timed_event * ite ;
2006-01-14 01:48:08 +03:00
struct timed_event * te ;
2006-01-13 03:38:35 +03:00
} limits ;
2005-06-19 13:31:34 +04:00
} ;
2004-09-22 14:48:32 +04:00
struct ldapsrv_call {
struct ldapsrv_connection * conn ;
2005-06-15 04:27:51 +04:00
struct ldap_message * request ;
2004-09-22 14:48:32 +04:00
struct ldapsrv_reply {
2005-06-19 13:31:34 +04:00
struct ldapsrv_reply * prev , * next ;
2005-06-15 04:27:51 +04:00
struct ldap_message * msg ;
2004-09-22 14:48:32 +04:00
} * replies ;
} ;
2004-09-22 17:01:00 +04:00
struct ldapsrv_service ;
struct ldapsrv_service {
2005-06-19 11:21:18 +04:00
struct tls_params * tls_params ;
2004-09-13 14:36:59 +04:00
} ;
2006-03-07 14:07:23 +03:00
# include "ldap_server/proto.h"