diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-02 13:00:44 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-11 09:04:48 +0100 |
commit | e574489be46dc7697a9718657e6941b11c6578d1 (patch) | |
tree | b91f3262c172104d8c11de0d40d681049ed4920a /source3/rpc_client | |
parent | b89a0439b3e38b6da739119d904d25901f34a8f8 (diff) | |
download | samba-e574489be46dc7697a9718657e6941b11c6578d1.tar.gz samba-e574489be46dc7697a9718657e6941b11c6578d1.tar.bz2 samba-e574489be46dc7697a9718657e6941b11c6578d1.zip |
s3-librpc Set target service and server into gensec
This will allow cli_rpc_pipe_open_generic_auth() to handle kerberos mechanisms.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 25c5e913a1..a87cb6d5ee 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2305,6 +2305,16 @@ static NTSTATUS rpccli_generic_bind_data(TALLOC_CTX *mem_ctx, goto fail; } + status = gensec_set_target_service(auth_generic_ctx->gensec_security, target_service); + if (!NT_STATUS_IS_OK(status)) { + goto fail; + } + + status = gensec_set_target_hostname(auth_generic_ctx->gensec_security, server); + if (!NT_STATUS_IS_OK(status)) { + goto fail; + } + status = auth_generic_client_start_by_authtype(auth_generic_ctx, auth_type, auth_level); if (!NT_STATUS_IS_OK(status)) { goto fail; |