summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-05-15 21:49:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:07:24 -0500
commit16b5eac38df91b2377cbffe3009cc956fcb8a78a (patch)
tree66222e7c451efd337e856645c2f37e5275038917 /source4/libnet/libnet.h
parent6506e27cb26dd05671a2a001d02536955101dae1 (diff)
downloadsamba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.tar.gz
samba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.tar.bz2
samba-16b5eac38df91b2377cbffe3009cc956fcb8a78a.zip
r15625: Partial commit of my current work. It makes libnet api functions
a bit more smart and more aware of what libnet_context can offer. The context is a help when some of the arguments are not passed (programmer counts on using sensible defaults) and stores some of results so that similar subsequent calls don't need to reopen some of policy handles, pipes, etc. again. It also helps to hide some of details the library user don't really want to know much about. Also, change domain open function to be part of public api, as it is going to be used in ejsnet interface. Note, this is work in progress. Comments are welcome. rafal (This used to be commit 1ed80c594c2f466e364a11194d6fdc30ac4a8f27)
Diffstat (limited to 'source4/libnet/libnet.h')
-rw-r--r--source4/libnet/libnet.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index 04428aa007..39dbb21f32 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -25,11 +25,18 @@ struct libnet_context {
*/
struct cli_credentials *cred;
- /* pipe */
+ /* pipes */
struct dcerpc_pipe *pipe;
+ 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;
- /* opened handles */
- struct policy_handle domain_handle;
struct policy_handle user_handle;
/* name resolution methods */
@@ -49,5 +56,6 @@ struct libnet_context {
#include "libnet/libnet_user.h"
#include "libnet/libnet_share.h"
#include "libnet/libnet_lookup.h"
+#include "libnet/libnet_domain.h"
#include "libnet/composite.h"
#include "libnet/libnet_proto.h"