Use daemon/sipb-xen.mit.edu and don't give user fake auth token in an HTML comment.
authorQuentin Smith <quentin@mit.edu>
Sun, 28 Oct 2007 04:13:37 +0000 (00:13 -0400)
committerQuentin Smith <quentin@mit.edu>
Sun, 28 Oct 2007 04:13:37 +0000 (00:13 -0400)
Closes #31

svn path=/trunk/web/; revision=216

templates/controls.py
templates/vnc.tmpl

index 5311dd9..1e769b0 100644 (file)
@@ -23,7 +23,7 @@ def uuidToString(u):
                      "%02x" * 6]) % tuple(u)
 # end stolen code
 
-def kinit(username = 'tabbott/extra', keytab = '/etc/tabbott.keytab'):
+def kinit(username = 'daemon/sipb-xen.mit.edu', keytab = '/etc/sipb-xen.keytab'):
     """Kinit with a given username and keytab"""
 
     p = subprocess.Popen(['kinit', "-k", "-t", keytab, username],
index 47415fe..0dfa965 100644 (file)
@@ -22,7 +22,7 @@ Console to $machine.name
 <PARAM NAME="AUTHTOKEN" VALUE="$authtoken">
 <PARAM NAME="SocketFactory" VALUE="VNCProxyConnectSocketFactory">
 </APPLET>
-<!-- 
+#*
 java VncViewer HOST black-mesa PORT 10003 VMNAME tabbott_test AUTHTOKEN quentin SocketFactory VNCProxyConnectSocketFactory
--->
+*#
 #end def