mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:gensec_gssapi: We need to use the users realm in the target_principal
This is important in order to let the kdc of the users realm start with the trust referral routing. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
fee23c33ae
commit
558e78c7e3
@ -339,7 +339,7 @@ static NTSTATUS gensec_gssapi_client_start(struct gensec_security *gensec_securi
|
||||
} else {
|
||||
gensec_gssapi_state->target_principal = talloc_asprintf(gensec_gssapi_state, "%s/%s@%s",
|
||||
gensec_get_target_service(gensec_security),
|
||||
hostname, lpcfg_realm(gensec_security->settings->lp_ctx));
|
||||
hostname, cli_credentials_get_realm(creds));
|
||||
|
||||
name_type = GSS_C_NT_USER_NAME;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user