summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sdroege@src.gnome.org>2008-03-19 11:51:54 +0000
committerSebastian Dröge <sdroege@src.gnome.org>2008-03-19 11:51:54 +0000
commita211632c5d76e6f7b5e0745e44c679011385f2da (patch)
tree4d9023ffbd3e89c5c82aca04eb8b312490166aaa
parente35cccf7d617e5439e16df28a4e81dfcf525b330 (diff)
downloadgvfs-a211632c5d76e6f7b5e0745e44c679011385f2da.tar.gz
Make the sftp backend work when pam_krb5 is used on the server side.
* daemon/gvfsbackendsftp.c: (handle_login): Make the sftp backend work when pam_krb5 is used on the server side. svn path=/trunk/; revision=1670
-rw-r--r--ChangeLog5
-rw-r--r--daemon/gvfsbackendsftp.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d2ba08f..509aa698 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-19 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * daemon/gvfsbackendsftp.c: (handle_login): Make the sftp backend
+ work when pam_krb5 is used on the server side.
+
2008-03-18 Christian Kellner <gicmo@gnome.org>
* configure.ac: Post release version bump.
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 8a08e1fb..fb235a8f 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -782,6 +782,8 @@ handle_login (GVfsBackend *backend,
if (g_str_has_suffix (buffer, "password: ") ||
g_str_has_suffix (buffer, "Password: ") ||
g_str_has_suffix (buffer, "Password:") ||
+ g_str_has_prefix (buffer, "Password for ") ||
+ g_str_has_prefix (buffer, "Enter Kerberos password") ||
g_str_has_prefix (buffer, "Enter passphrase for key"))
{
authtype = get_authtype_from_password_line (buffer);