From: Jeremy Allison Date: Mon, 29 Jan 2018 20:52:14 +0000 (-0800) Subject: s3: librpc: Allow client to correctly report etype unsupported by KDC to caller. X-Git-Tag: tevent-0.9.36~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fc471242fac5fec170a3d9ba599d81ed7374954;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Wed Jan 31 00:38:09 CET 2018 on sn-devel-144 --- diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c index bcda8de896f..5cb664710ef 100644 --- a/source3/librpc/crypto/gse.c +++ b/source3/librpc/crypto/gse.c @@ -526,6 +526,9 @@ init_sec_context_done: /* Garbage input, possibly from the auto-mech detection */ status = NT_STATUS_INVALID_PARAMETER; goto done; + case (OM_uint32)KRB5KDC_ERR_ETYPE_NOSUPP: + status = NT_STATUS_KDC_UNKNOWN_ETYPE; + goto done; default: DBG_ERR("gss_init_sec_context failed with [%s](%u)\n", gse_errstr(talloc_tos(), gss_maj, gss_min),