From 4d819eaede6859699b5586158ab635aba085084e 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 Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Wed Jan 31 00:38:09 CET 2018 on sn-devel-144 (cherry picked from commit 9fc471242fac5fec170a3d9ba599d81ed7374954) --- 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.14.1