2004-08-14 07:32:42 +04:00
/*
Unix SMB / CIFS implementation .
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 .
*/
struct libnet_context {
2004-08-16 20:52:57 +04:00
/* here we need:
* a client env context
* a user env context
*/
2005-06-03 23:09:21 +04:00
struct cli_credentials * cred ;
2005-06-08 03:24:57 +04:00
2006-05-16 01:49:27 +04:00
/* pipes */
2005-07-02 18:32:49 +04:00
struct dcerpc_pipe * pipe ;
2006-05-16 01:49:27 +04:00
struct dcerpc_pipe * lsa_pipe ;
struct dcerpc_pipe * samr_pipe ;
/* opened handles and related properties */
struct {
const char * name ;
uint32_t access_mask ;
struct policy_handle handle ;
} domain ;
2005-06-08 03:24:57 +04:00
struct policy_handle user_handle ;
2005-06-16 15:36:09 +04:00
2005-07-02 18:32:49 +04:00
/* name resolution methods */
2005-11-21 00:33:30 +03:00
const char * * name_res_methods ;
2005-07-02 18:32:49 +04:00
2005-06-16 15:36:09 +04:00
struct event_context * event_ctx ;
2004-08-16 20:52:57 +04:00
} ;
2005-06-03 23:09:21 +04:00
2006-03-14 18:44:40 +03:00
# include "lib/ldb/include/ldb.h"
2006-05-28 14:45:22 +04:00
# include "libnet/composite.h"
# include "libnet/userman.h"
# include "libnet/userinfo.h"
2004-08-25 13:22:47 +04:00
# include "libnet/libnet_passwd.h"
2004-08-25 16:11:28 +04:00
# include "libnet/libnet_time.h"
2004-08-25 13:22:47 +04:00
# include "libnet/libnet_rpc.h"
2005-01-13 10:50:09 +03:00
# include "libnet/libnet_join.h"
2006-01-17 06:44:37 +03:00
# include "libnet/libnet_site.h"
2005-05-02 18:17:19 +04:00
# include "libnet/libnet_vampire.h"
2005-02-13 03:48:21 +03:00
# include "libnet/libnet_user.h"
2005-05-25 02:48:49 +04:00
# include "libnet/libnet_share.h"
2005-06-19 02:29:41 +04:00
# include "libnet/libnet_lookup.h"
2006-05-16 01:49:27 +04:00
# include "libnet/libnet_domain.h"
2005-12-28 18:38:36 +03:00
# include "libnet/libnet_proto.h"