Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 288285 Details for
Bug 380707
sftp authentication broken in kde 4.7, patch available
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sftp patch for kdebase-kioslaves-4.7.1
kdebase-kioslaves-4.7.1-sftp.patch (text/plain), 2.64 KB, created by
aditsu
on 2011-09-29 22:26:01 UTC
(
hide
)
Description:
sftp patch for kdebase-kioslaves-4.7.1
Filename:
MIME Type:
Creator:
aditsu
Created:
2011-09-29 22:26:01 UTC
Size:
2.64 KB
patch
obsolete
>--- a/kioslave/sftp/kio_sftp.cpp >+++ b/kioslave/sftp/kio_sftp.cpp >@@ -675,6 +675,8 @@ > kDebug(KIO_SFTP_DB) << "Trying to authenticate public key"; > rc = ssh_userauth_autopubkey(mSession, NULL); > if (rc == SSH_AUTH_ERROR) { >+ kDebug(KIO_SFTP_DB) << "Public key authentication failed: " << >+ QString::fromUtf8(ssh_get_error(mSession)); > closeConnection(); > error(KIO::ERR_COULD_NOT_LOGIN, i18n("Authentication failed.")); > return; >@@ -683,21 +685,6 @@ > } > } > >- // Try to authenticate with keyboard interactive >- if (method & SSH_AUTH_METHOD_INTERACTIVE) { >- kDebug(KIO_SFTP_DB) << "Trying to authenticate with keyboard interactive"; >- AuthInfo info2 (info); >- rc = authenticateKeyboardInteractive(info2); >- if (rc == SSH_AUTH_ERROR) { >- closeConnection(); >- error(KIO::ERR_COULD_NOT_LOGIN, i18n("Authentication failed.")); >- return; >- } else if (rc == SSH_AUTH_SUCCESS) { >- info = info2; >- break; >- } >- } >- > if (!firstTime || mPassword.isEmpty()) { > > info.keepPassword = true; // make the "keep Password" check box visible to the user. >@@ -728,6 +715,26 @@ > closeConnection(); > goto login_start; > } >+ >+ mUsername = info.username; >+ mPassword = info.password; >+ } >+ >+ // Try to authenticate with keyboard interactive >+ if (method & SSH_AUTH_METHOD_INTERACTIVE) { >+ kDebug(KIO_SFTP_DB) << "Trying to authenticate with keyboard interactive"; >+ AuthInfo info2 (info); >+ rc = authenticateKeyboardInteractive(info2); >+ if (rc == SSH_AUTH_ERROR) { >+ kDebug(KIO_SFTP_DB) << "Keyboard interactive authentication failed: " << >+ QString::fromUtf8(ssh_get_error(mSession)); >+ closeConnection(); >+ error(KIO::ERR_COULD_NOT_LOGIN, i18n("Authentication failed.")); >+ return; >+ } else if (rc == SSH_AUTH_SUCCESS) { >+ info = info2; >+ break; >+ } > } > > // Try to authenticate with password >@@ -735,6 +742,8 @@ > kDebug(KIO_SFTP_DB) << "Trying to authenticate with password"; > rc = ssh_userauth_password(mSession, info.username.toUtf8().constData(), info.password.toUtf8().constData()); > if (rc == SSH_AUTH_ERROR) { >+ kDebug(KIO_SFTP_DB) << "Password authentication failed: " << >+ QString::fromUtf8(ssh_get_error(mSession)); > closeConnection(); > error(KIO::ERR_COULD_NOT_LOGIN, i18n("Authentication failed.")); > return; >@@ -1855,5 +1864,9 @@ > finished(); > return false; > } >+ if (!mConnected) { >+ return false; >+ } >+ > return true; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 380707
: 288285 |
288287