From 4a4fc8cccbcbe17eebcefcd0107f7de60d751f5c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 27 Jul 2007 07:19:36 +0000 Subject: [PATCH] r24062: fix logic for broken krb5 libs which always force sign and seal... metze --- source/libads/sasl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libads/sasl.c b/source/libads/sasl.c index 6c5a518e6ae..f5e540d3044 100644 --- a/source/libads/sasl.c +++ b/source/libads/sasl.c @@ -486,7 +486,8 @@ static ADS_STATUS ads_sasl_spnego_gsskrb5_bind(ADS_STRUCT *ads, const char *snam status = ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED); goto failed; - } else if (req_flags & GSS_C_INTEG_FLAG) { + } else if ((req_flags & GSS_C_INTEG_FLAG) && + !(ret_flags & GSS_C_INTEG_FLAG)) { /* * here we wanted siging but didn't got it * from the gssapi library -- 2.34.1