2004-10-16 13:47:00 +00:00
/*
Unix SMB / CIFS implementation .
database wrap headers
Copyright ( C ) Andrew Tridgell 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
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2004-10-16 13:47:00 +00:00
( 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
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2004-10-16 13:47:00 +00:00
*/
2007-11-16 20:12:00 +01:00
# ifndef _LDB_WRAP_H_
# define _LDB_WRAP_H_
2004-10-16 13:47:00 +00:00
2010-10-10 17:34:21 +02:00
# include <talloc.h>
2006-03-14 15:03:25 +00:00
struct auth_session_info ;
struct ldb_message ;
struct ldb_dn ;
2006-03-18 15:42:57 +00:00
struct cli_credentials ;
2007-10-01 18:52:55 +00:00
struct loadparm_context ;
2008-12-29 20:24:57 +01:00
struct tevent_context ;
2006-03-14 15:03:25 +00:00
2008-08-22 17:36:56 +10:00
char * wrap_casefold ( void * context , void * mem_ctx , const char * s , size_t n ) ;
2007-11-16 20:12:00 +01:00
struct ldb_context * ldb_wrap_connect ( TALLOC_CTX * mem_ctx ,
2008-12-29 20:24:57 +01:00
struct tevent_context * ev ,
2007-11-16 20:12:00 +01:00
struct loadparm_context * lp_ctx ,
const char * url ,
struct auth_session_info * session_info ,
struct cli_credentials * credentials ,
2009-10-23 14:27:00 +11:00
unsigned int flags ) ;
2007-11-16 20:12:00 +01:00
2009-10-23 14:27:00 +11:00
void ldb_wrap_fork_hook ( void ) ;
2010-10-10 17:15:11 +02:00
2010-10-10 17:34:21 +02:00
struct ldb_context * samba_ldb_init ( TALLOC_CTX * mem_ctx ,
2010-10-10 17:15:11 +02:00
struct tevent_context * ev ,
struct loadparm_context * lp_ctx ,
struct auth_session_info * session_info ,
2010-10-10 23:25:38 +02:00
struct cli_credentials * credentials ) ;
2010-10-10 17:34:21 +02:00
struct ldb_context * ldb_wrap_find ( const char * url ,
struct tevent_context * ev ,
struct loadparm_context * lp_ctx ,
struct auth_session_info * session_info ,
struct cli_credentials * credentials ,
2011-04-10 19:54:31 +02:00
unsigned int flags ) ;
2010-10-10 23:25:38 +02:00
bool ldb_wrap_add ( const char * url , struct tevent_context * ev ,
struct loadparm_context * lp_ctx ,
struct auth_session_info * session_info ,
struct cli_credentials * credentials ,
2011-04-10 19:54:31 +02:00
unsigned int flags ,
2010-10-10 23:25:38 +02:00
struct ldb_context * ldb ) ;
2010-10-10 23:45:23 +02:00
char * ldb_relative_path ( struct ldb_context * ldb ,
TALLOC_CTX * mem_ctx ,
const char * name ) ;
2010-10-10 17:15:11 +02:00
2010-10-30 11:41:11 +11:00
int samba_ldb_connect ( struct ldb_context * ldb , struct loadparm_context * lp_ctx ,
2011-04-10 19:54:31 +02:00
const char * url , unsigned int flags ) ;
2010-10-30 11:41:11 +11:00
2007-11-16 20:12:00 +01:00
# endif /* _LDB_WRAP_H_ */