Commit 29895454 authored by Leigh Stoller's avatar Leigh Stoller

* As of version 3, the CDROM now downloads the entire register.pl

  script. The old script is just a wrapper that asks the page for the
  real script, which is run on the node. We return a url and md5 in
  the response, which the node then gets with wget. Right now the md5
  and the url are hardwired in the page, and the script goes in
  /z/testbed/distributions on boss. Needs to be DB loaded instead. The
  node will wait forever until it can get the script. ^C on the
  console will drop the node into a shell if the user knows the root
  password.

  Security is flimsy still; we depend on the ssl connection to ensure
  that the script is really coming from emulab. Should probably sign
  the script.
parent 05d1aa0e
This diff is collapsed.
This diff is collapsed.
...@@ -614,7 +614,7 @@ sub WriteRCFiles() ...@@ -614,7 +614,7 @@ sub WriteRCFiles()
print("$path could not be opened for writing: $!\n"); print("$path could not be opened for writing: $!\n");
return -1; return -1;
} }
print CONFIG "$TTL 3600\n\n"; print CONFIG "\$TTL 3600\n\n";
print CONFIG "@ IN SOA ${myhost}. root.${myhost}. (\n"; print CONFIG "@ IN SOA ${myhost}. root.${myhost}. (\n";
print CONFIG " 20020927 ; Serial\n"; print CONFIG " 20020927 ; Serial\n";
print CONFIG " 3600 ; Refresh\n"; print CONFIG " 3600 ; Refresh\n";
......
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