[connections/forwardport-rdp-auth-fix] rdp: Fix interactive authentication
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/forwardport-rdp-auth-fix] rdp: Fix interactive authentication
- Date: Fri, 26 Nov 2021 10:18:34 +0000 (UTC)
commit 220a772d007efa864ec796fee8e7b7d78c6c7386
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Sep 2 11:49:01 2021 +0200
rdp: Fix interactive authentication
Fixes #87
src/rdp-connection.vala | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/rdp-connection.vala b/src/rdp-connection.vala
index e5370e8..bb8f23e 100644
--- a/src/rdp-connection.vala
+++ b/src/rdp-connection.vala
@@ -68,9 +68,11 @@ namespace Connections {
display.rdp_error.connect (on_connection_error_cb);
display.rdp_connected.connect (() => { show (); });
- display.rdp_needs_authentication.connect (on_rdp_auth_credential_cb);
+ //display.rdp_needs_authentication.connect (on_rdp_auth_credential_cb);
display.rdp_auth_failure.connect (auth_failed);
//display.size_allocate.connect (scale);
+
+ need_username = need_password = true;
}
public RdpConnection (string uuid) {
@@ -91,9 +93,15 @@ namespace Connections {
public override void connect_it () {
if (connected)
return;
- connected = true;
+
+ if (username == null && password == null) {
+ handle_auth ();
+
+ return;
+ }
display.open_host (host, port);
+ connected = true;
}
public override void disconnect_it () {
@@ -112,8 +120,6 @@ namespace Connections {
need_username = need_password = true;
handle_auth ();
-
- disconnect_it ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]