From 406b9ff97c272c8297c153f8ea81c2af0186b346 Mon Sep 17 00:00:00 2001 From: Bartosz Wieczorek Date: Fri, 18 Jul 2025 12:26:41 +0200 Subject: [PATCH] Fix handling of fail mode --- PAM/ssh/include/rublon/error_handler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PAM/ssh/include/rublon/error_handler.hpp b/PAM/ssh/include/rublon/error_handler.hpp index 132e9d5..0894183 100644 --- a/PAM/ssh/include/rublon/error_handler.hpp +++ b/PAM/ssh/include/rublon/error_handler.hpp @@ -44,7 +44,7 @@ class ErrorHandler { } if(error.is< ConnectionError >()) { - if(config.failMode == FailMode::deny) { + if(config.failMode != FailMode::deny) { pam.print("Incorrect response from the Rublon API, user bypassed"); return AuthenticationStatus::Action::Bypass; } else {