From e6b54f7acf45abcbc81d192bf618034a075c4d18 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Sat, 2 Jul 2005 14:32:49 +0000 Subject: r8076: Put name resolution methods into libnet_context. This allows libnet based application use methods of their own choice and makes it less dependent on smb.conf parameters. Use libnet_context in libnet_Lookup functions which is the way to pass default name resolution methods if caller doesn't want to bother with specifying them. rafal (This used to be commit d0ea136356bcb9c6c01120d8683b71e8689d5e5b) --- source4/libnet/libnet.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/libnet/libnet.h') diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h index 470c98dca9..18dc376628 100644 --- a/source4/libnet/libnet.h +++ b/source4/libnet/libnet.h @@ -25,13 +25,16 @@ struct libnet_context { */ struct cli_credentials *cred; - /* dcerpc pipes */ - struct dcerpc_pipe *samr; + /* pipe */ + struct dcerpc_pipe *pipe; /* opened handles */ struct policy_handle domain_handle; struct policy_handle user_handle; + /* name resolution methods */ + char **name_res_methods; + struct event_context *event_ctx; }; -- cgit