From 817dc0ed3ae8745d23c6749d4f3ba64164b3e3cc Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 21 Dec 2021 12:46:08 +0100 Subject: [PATCH] Prevent password enforcement for SASL GSSAPI Similar fix as 9b339efbc1cf ("Prevent password enforcement for SASL anonymous") just for SASL GSSAPI. Fixes SMACK-920. Fixes: 92f4aadfdc45 ("[sasl] Avoid mechanisms that need a password when none is available") --- .../jivesoftware/smack/sasl/javax/SASLGSSAPIMechanism.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smack-sasl-javax/src/main/java/org/jivesoftware/smack/sasl/javax/SASLGSSAPIMechanism.java b/smack-sasl-javax/src/main/java/org/jivesoftware/smack/sasl/javax/SASLGSSAPIMechanism.java index 210e94ab9..bdef7d673 100644 --- a/smack-sasl-javax/src/main/java/org/jivesoftware/smack/sasl/javax/SASLGSSAPIMechanism.java +++ b/smack-sasl-javax/src/main/java/org/jivesoftware/smack/sasl/javax/SASLGSSAPIMechanism.java @@ -66,4 +66,8 @@ public class SASLGSSAPIMechanism extends SASLJavaXMechanism { return new SASLGSSAPIMechanism(); } + @Override + public boolean requiresPassword() { + return false; + } }