1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:gensec_gssapi: require a realm in gensec_gssapi_client_start()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-12-29 15:20:00 +01:00
parent 48bcca566e
commit 3a870baee8

View File

@ -330,6 +330,16 @@ static NTSTATUS gensec_gssapi_client_start(struct gensec_security *gensec_securi
return NT_STATUS_INVALID_PARAMETER;
}
if (realm == NULL) {
char *cred_name = cli_credentials_get_unparsed_name(creds,
gensec_security);
DEBUG(3, ("cli_credentials(%s) without realm, "
"cannot use kerberos for this connection %s/%s\n",
cred_name, service, hostname));
TALLOC_FREE(cred_name);
return NT_STATUS_INVALID_PARAMETER;
}
do_start:
nt_status = gensec_gssapi_start(gensec_security);