Commit 405ada0e authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to ConsoleAuthObject().

parent 0ad7a144
......@@ -98,7 +98,7 @@ $console["portnum"] = $portnum;
$console["keylen"] = $keylen;
$console["keydata"] = $keydata;
$console["certhash"] = $certhash;
$console_auth = $node->ConsoleAuthObject($this_user, $console);
$console_auth = $node->ConsoleAuthObject($this_user->uid(), $console);
echo "<center>
<div id='console-div' ".
......
......@@ -1579,10 +1579,9 @@ class Node
# is passed to the web server on ops. This is used to grant
# permission to the user to invoke tip to the console.
#
function ConsoleAuthObject($user, $console)
function ConsoleAuthObject($uid, $console)
{
global $USERNODE;
$uid = $user->uid();
$node_id = $this->node_id();
$file = "/usr/testbed/etc/sshauth.key";
......
......@@ -183,7 +183,7 @@ $console["keylen"] = $keylen;
$console["keydata"] = $keydata;
$console["certhash"] = $certhash;
$console_auth = $node->ConsoleAuthObject($user, $console);
$console_auth = $node->ConsoleAuthObject($uid, $console);
if (!isset($key)) {
PAGEHEADER("$node_id Console");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment