1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: librpc: Allow client to correctly report etype unsupported by KDC to caller.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13247

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jan 31 00:38:09 CET 2018 on sn-devel-144
This commit is contained in:
Jeremy Allison 2018-01-29 12:52:14 -08:00 committed by Andreas Schneider
parent 32d867cf09
commit 9fc471242f

View File

@ -526,6 +526,9 @@ init_sec_context_done:
/* Garbage input, possibly from the auto-mech detection */ /* Garbage input, possibly from the auto-mech detection */
status = NT_STATUS_INVALID_PARAMETER; status = NT_STATUS_INVALID_PARAMETER;
goto done; goto done;
case (OM_uint32)KRB5KDC_ERR_ETYPE_NOSUPP:
status = NT_STATUS_KDC_UNKNOWN_ETYPE;
goto done;
default: default:
DBG_ERR("gss_init_sec_context failed with [%s](%u)\n", DBG_ERR("gss_init_sec_context failed with [%s](%u)\n",
gse_errstr(talloc_tos(), gss_maj, gss_min), gse_errstr(talloc_tos(), gss_maj, gss_min),