summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-16 19:59:11 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:11 +0100
commitd1340c20b0900f54e2c73c4a363f45988b1ba097 (patch)
tree49cc1b5798da27f22fe2edaf689d713426f99f76 /source3
parent3bf77812e80b50f254af64e4935301719f78987e (diff)
downloadsamba-d1340c20b0900f54e2c73c4a363f45988b1ba097.tar.gz
samba-d1340c20b0900f54e2c73c4a363f45988b1ba097.tar.xz
samba-d1340c20b0900f54e2c73c4a363f45988b1ba097.zip
s3:net_rpc: add net_context->netlogon_creds
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.h1
-rw-r--r--source3/utils/net_rpc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net.h b/source3/utils/net.h
index e97734ae34..ce19c57f47 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -90,6 +90,7 @@ struct net_context {
bool smb_encrypt;
struct libnetapi_ctx *netapi_ctx;
struct messaging_context *msg_ctx;
+ struct netlogon_creds_cli_context *netlogon_creds;
bool display_usage;
void *private_data;
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 6adb3261b3..26c7e159ed 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -201,6 +201,7 @@ int run_rpc_command(struct net_context *c,
nt_errstr(nt_status) ));
goto fail;
}
+ c->netlogon_creds = pipe_hnd->netlogon_creds;
} else {
if (conn_flags & NET_FLAGS_SEAL) {
nt_status = cli_rpc_pipe_open_generic_auth(