summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-08-21 20:52:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:21 -0500
commit1f8fda717f95edb63d4596321b8c8bfafd5a4497 (patch)
tree8c5c0db423ad19d18661953bab46fb5d06927996 /source4/libnet/libnet.h
parent7cb4dcf146b7ca41b8504571151911f0b3161e28 (diff)
downloadsamba-1f8fda717f95edb63d4596321b8c8bfafd5a4497.tar.gz
samba-1f8fda717f95edb63d4596321b8c8bfafd5a4497.tar.bz2
samba-1f8fda717f95edb63d4596321b8c8bfafd5a4497.zip
r17670: 1) Refactor libnet context structure a bit, to have rpc connection
properties more consistently reflected. 2) Add domain open routine for lsa pipe - this is needed for ongoing name resolve function. Tests (still neglected) and comments to follow. rafal (This used to be commit fe5652c2b8121bbe3b9932c43164035355478611)
Diffstat (limited to 'source4/libnet/libnet.h')
-rw-r--r--source4/libnet/libnet.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index 293e4e6505..e394c1c88e 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -26,20 +26,26 @@ struct libnet_context {
*/
struct cli_credentials *cred;
- /* pipes */
struct dcerpc_pipe *pipe;
- struct dcerpc_pipe *lsa_pipe;
- struct dcerpc_pipe *samr_pipe;
- /* opened handles and related properties */
+ /* samr connection parameters - opened handles and related properties */
struct {
+ struct dcerpc_pipe *pipe;
const char *name;
uint32_t access_mask;
struct policy_handle handle;
- } domain;
+ } samr;
struct policy_handle user_handle;
+ /* lsa connection parameters - opened handles and related properties */
+ struct {
+ struct dcerpc_pipe *pipe;
+ const char *name;
+ uint32_t access_mask;
+ struct policy_handle handle;
+ } lsa;
+
/* name resolution methods */
const char **name_res_methods;