1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00

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 commit is contained in:
Rafal Szczesniak
2006-05-15 21:49:27 +00:00
committed by Gerald (Jerry) Carter
parent 8fa6059100
commit 1ed80c594c
8 changed files with 403 additions and 61 deletions

View File

@@ -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"