diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-16 20:53:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:15 +0100 |
commit | 660150b12a637da7f9ebb820e687f27ac22fb93a (patch) | |
tree | 49945d99f4351a692bab2576479b30b1bd41b5c3 /source3/utils | |
parent | a34c837fdb59df1e66be9b5f23a07990e34fea1c (diff) | |
download | samba-660150b12a637da7f9ebb820e687f27ac22fb93a.tar.gz samba-660150b12a637da7f9ebb820e687f27ac22fb93a.tar.xz samba-660150b12a637da7f9ebb820e687f27ac22fb93a.zip |
s3:rpc_client: make cli_rpc_pipe_open_schannel() more flexible
It expects a messaging_context now
and returns a netlogon_creds_cli_context.
This way we can finally avoid having a rpc_pipe_client->netlogon_creds.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 2a1a0bcef5..778e888950 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -192,16 +192,16 @@ int run_rpc_command(struct net_context *c, && (ndr_syntax_id_equal(&table->syntax_id, &ndr_table_netlogon.syntax_id))) { /* Always try and create an schannel netlogon pipe. */ + TALLOC_FREE(c->netlogon_creds); nt_status = cli_rpc_pipe_open_schannel( - cli, table, NCACN_NP, + cli, c->msg_ctx, table, NCACN_NP, DCERPC_AUTH_LEVEL_PRIVACY, domain_name, - &pipe_hnd); + &pipe_hnd, c, &c->netlogon_creds); if (!NT_STATUS_IS_OK(nt_status)) { DEBUG(0, ("Could not initialise schannel netlogon pipe. Error was %s\n", 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( |