Blame SOURCES/handle-securid-password-prompt.patch

6237cd
From b64149c3fc292c1763c3f0056d6a8081e2ce0810 Mon Sep 17 00:00:00 2001
6237cd
From: Ondrej Holy <oholy@redhat.com>
6237cd
Date: Mon, 10 Apr 2017 11:17:51 +0200
6237cd
Subject: [PATCH] sftp: Handle SecurID password prompt
6237cd
6237cd
SFTP backend parses output from SSH client and expects several predefined
6237cd
password prompts. Unfortunately, SecurID (pam_securid.so) is not handled
6237cd
yet and the mount operation timeouts with the following error: "Timed out
6237cd
when logging in". Let's handle also SecurID prompt (i.e. "Enter PASSCODE").
6237cd
6237cd
https://bugzilla.redhat.com/show_bug.cgi?id=1440256
6237cd
---
6237cd
 daemon/gvfsbackendsftp.c | 3 ++-
6237cd
 1 file changed, 2 insertions(+), 1 deletion(-)
6237cd
6237cd
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
6237cd
index 353f092e..22ad4db7 100644
6237cd
--- a/daemon/gvfsbackendsftp.c
6237cd
+++ b/daemon/gvfsbackendsftp.c
6237cd
@@ -1100,7 +1100,8 @@ handle_login (GVfsBackend *backend,
6237cd
           g_str_has_suffix (buffer, "Password:")  ||
6237cd
           g_str_has_prefix (buffer, "Password for ") ||
6237cd
           g_str_has_prefix (buffer, "Enter Kerberos password") ||
6237cd
-          g_str_has_prefix (buffer, "Enter passphrase for key"))
6237cd
+          g_str_has_prefix (buffer, "Enter passphrase for key") ||
6237cd
+          g_str_has_prefix (buffer, "Enter PASSCODE"))
6237cd
         {
6237cd
           gboolean aborted = FALSE;
6237cd
           gsize bytes_written;
6237cd
-- 
6237cd
2.12.2
6237cd