mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
s3:gse: Check if we have a target_princpal set we should use
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12554 Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit ada31d65d6c5929d2fbddfea5611a5f5fe5a0d74)
This commit is contained in:
parent
c2b3115f95
commit
73d13c0b09
@ -341,6 +341,7 @@ static NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx,
|
||||
OM_uint32 time_rec = 0;
|
||||
struct timeval tv;
|
||||
struct cli_credentials *cli_creds = gensec_get_credentials(gensec_security);
|
||||
const char *target_principal = gensec_get_target_principal(gensec_security);
|
||||
const char *hostname = gensec_get_target_hostname(gensec_security);
|
||||
const char *service = gensec_get_target_service(gensec_security);
|
||||
const char *client_realm = cli_credentials_get_realm(cli_creds);
|
||||
@ -401,7 +402,7 @@ static NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
status = gse_setup_server_principal(mem_ctx,
|
||||
NULL,
|
||||
target_principal,
|
||||
service,
|
||||
hostname,
|
||||
server_realm,
|
||||
|
Loading…
x
Reference in New Issue
Block a user