From bddcdc2193ae87d689d07cbc1afe7c364b2a0f4a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 29 Jan 2018 12:52:14 -0800 Subject: [PATCH] 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 --- source3/librpc/crypto/gse.c | 3 +++ 1 file changed, 3 insertions(+) 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), -- 2.16.0.rc1.238.g530d649a79-goog