[pve-devel] r5445 - in vncterm/pve2: . tigerpatches
svn-commits at proxmox.com
svn-commits at proxmox.com
Thu Jan 27 11:10:49 CET 2011
Author: dietmar
Date: 2011-01-27 11:10:49 +0100 (Thu, 27 Jan 2011)
New Revision: 5445
Added:
vncterm/pve2/tigerpatches/username-param.patch
Modified:
vncterm/pve2/VncViewer.jar
vncterm/pve2/tigerpatches/series
Log:
allow to set username and password
Modified: vncterm/pve2/VncViewer.jar
===================================================================
(Binary files differ)
Modified: vncterm/pve2/tigerpatches/series
===================================================================
--- vncterm/pve2/tigerpatches/series 2011-01-27 10:09:21 UTC (rev 5444)
+++ vncterm/pve2/tigerpatches/series 2011-01-27 10:10:49 UTC (rev 5445)
@@ -2,3 +2,4 @@
javascript-events.patch
export-ctrl-alt-delete.patch
trust-manager.patch
+username-param.patch
Added: vncterm/pve2/tigerpatches/username-param.patch
===================================================================
--- vncterm/pve2/tigerpatches/username-param.patch (rev 0)
+++ vncterm/pve2/tigerpatches/username-param.patch 2011-01-27 10:10:49 UTC (rev 5445)
@@ -0,0 +1,38 @@
+Index: new/java/src/com/tigervnc/vncviewer/VncViewer.java
+===================================================================
+--- new.orig/java/src/com/tigervnc/vncviewer/VncViewer.java 2011-01-26 14:00:38.000000000 +0100
++++ new/java/src/com/tigervnc/vncviewer/VncViewer.java 2011-01-26 14:07:51.000000000 +0100
+@@ -86,6 +86,7 @@
+ String host;
+ int port;
+ String passwordParam;
++ String usernameParam;
+ boolean showControls;
+ boolean offerRelogin;
+ boolean showOfflineDesktop;
+@@ -384,10 +385,12 @@
+ break;
+ case RfbProto.SecTypePlain:
+ showConnectionStatus("Plain authentication");
+- {
+- String user = askUser();
+- String pw = askPassword();
+- rfb.authenticatePlain(user,pw);
++ if (usernameParam != null && passwordParam != null) {
++ rfb.authenticatePlain(usernameParam, passwordParam);
++ } else {
++ String user = askUser();
++ String pw = askPassword();
++ rfb.authenticatePlain(user,pw);
+ }
+ break;
+ case RfbProto.SecTypeTLSNone:
+@@ -814,6 +817,8 @@
+ // Read "ENCPASSWORD" or "PASSWORD" parameter if specified.
+ readPasswordParameters();
+
++ usernameParam = readParameter("USERNAME", false);
++
+ String str;
+ if (inAnApplet) {
+ str = readParameter("Open New Window", false);
More information about the pve-devel
mailing list