X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-host;h=0c8d12fd0e9cfee20fd0e83cdabbdefad4cf0c69;hb=50ab9059306495255335965e89423fabd31ac3e6;hp=e16e31a115798cfb226a4ff0abdaa3fcd7c5c3d0;hpb=9c46f82fc6e9dc4f6966dafcf2cca92d5f01ec80;p=mirror%2Fuserdir-ldap.git diff --git a/ud-host b/ud-host index e16e31a..0c8d12f 100755 --- a/ud-host +++ b/ud-host @@ -26,9 +26,8 @@ AttrInfo = {"description": ["Machine Descr.", 1], "machine": ["Machine Hardware", 10], "memory": ["Memory", 11], "disk": ["Disk", 12], - "sshrsahostkey": ["SSH RSA", 14], - "sshdsahostkey": ["SSH DSA", 15], - "bandwidth": ["Bandwidth", 16]}; + "sshrsahostkey": ["SSH Host Keys", 14], + "bandwidth": ["Bandwidth", 15]}; AttrPrompt = {"description": ["Purpose of the machine"], "hostname": ["The hostnames for the box (ipv4/ipv6)"], @@ -42,8 +41,7 @@ AttrPrompt = {"description": ["Purpose of the machine"], "machine": ["Hardware description"], "memory": ["Installed RAM"], "disk": ["Disk Space, RAID levels, etc"], - "sshrsahostkey": ["A copy of /etc/ssh/ssh_host_key.pub"], - "sshdsahostkey": ["A copy of /etc/ssh/ssh_host_key.pub.dsa"], + "sshrsahostkey": ["A copy of /etc/ssh/ssh_*host_key.pub"], "bandwidth": ["Available outbound"]}; # Create a map of IDs to desc,value,attr @@ -94,7 +92,7 @@ def ShowAttrs(Attrs): # Change a single attribute def ChangeAttr(Attrs,Attr): - if (Attr == "sponsor" or Attr == "hostname"): + if (Attr == "sponsor" or Attr == "hostname" or Attr == "sshrsahostkey"): return MultiChangeAttr(Attrs,Attr); print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));