2004-08-14 07:32:42 +04:00
/*
Unix SMB / CIFS implementation .
2006-07-14 02:14:06 +04:00
Copyright ( C ) Stefan Metzmacher 2004
Copyright ( C ) Rafal Szczesniak 2005 - 2006
2004-08-14 07:32:42 +04:00
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 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2004-08-14 07:32:42 +04: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 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2004-08-14 07:32:42 +04:00
*/
2007-09-24 01:35:03 +04:00
# include "librpc/gen_ndr/misc.h"
2004-08-14 07:32:42 +04:00
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-08-22 00:52:14 +04:00
/* samr connection parameters - opened handles and related properties */
2006-05-16 01:49:27 +04:00
struct {
2006-08-22 00:52:14 +04:00
struct dcerpc_pipe * pipe ;
2007-12-24 06:27:58 +03:00
const char * name ;
2007-08-02 17:08:39 +04:00
struct dom_sid * sid ;
2006-05-16 01:49:27 +04:00
uint32_t access_mask ;
struct policy_handle handle ;
2007-07-24 10:02:32 +04:00
struct policy_handle connect_handle ;
2007-05-12 01:44:18 +04:00
int buf_size ;
2006-08-22 00:52:14 +04:00
} samr ;
2005-06-08 03:24:57 +04:00
2006-08-22 00:52:14 +04:00
/* lsa connection parameters - opened handles and related properties */
struct {
struct dcerpc_pipe * pipe ;
2007-12-24 06:27:58 +03:00
const char * name ;
2006-08-22 00:52:14 +04:00
uint32_t access_mask ;
struct policy_handle handle ;
} lsa ;
2005-07-02 18:32:49 +04:00
/* name resolution methods */
2007-12-10 20:41:19 +03:00
struct resolve_context * resolve_ctx ;
2005-07-02 18:32:49 +04:00
2008-12-29 22:24:57 +03:00
struct tevent_context * event_ctx ;
2007-12-07 04:37:04 +03:00
struct loadparm_context * lp_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"
2007-08-20 01:07:11 +04:00
# include "libnet/groupinfo.h"
2007-09-27 04:25:54 +04:00
# include "libnet/groupman.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"
2006-12-02 15:46:13 +03:00
# include "libnet/libnet_become_dc.h"
2006-12-05 14:49:55 +03:00
# include "libnet/libnet_unbecome_dc.h"
2008-04-09 06:02:11 +04:00
# include "libnet/libnet_samsync.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"
2007-08-27 00:25:39 +04:00
# include "libnet/libnet_group.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"
2009-07-27 16:04:26 +04:00
# include "libnet/libnet_export_keytab.h"
2005-12-28 18:38:36 +03:00
# include "libnet/libnet_proto.h"