mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
b89a0439b3
commit
e574489be4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user