X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-host;fp=ud-host;h=77c0b3cdfedaae8762defeaa16752ea97e549eb1;hb=59246aaadf02049cfee05c504d23021f3c9141d2;hp=97af1ef6e04ae5ecc02598d298d4b3206ca2699c;hpb=5db323e2b56290f8018d3f8b3f8af3a2fff2f684;p=mirror%2Fuserdir-ldap.git diff --git a/ud-host b/ud-host index 97af1ef..77c0b3c 100755 --- a/ud-host +++ b/ud-host @@ -53,7 +53,10 @@ AttrInfo = {"description": ["Machine Descr.", 1], "physicalHost": ["Physical Host", 13], "sshRSAHostKey": ["SSH Host Keys", 14], "bandwidth": ["Bandwidth", 15], - "purpose": ["Purposes", 16],}; + "purpose": ["Purposes", 16], + "allowedGroups": ["Groups", 17], + "exportOptions": ["Export-Opts", 18], + } AttrPrompt = {"description": ["Purpose of the machine"], "hostname": ["The hostnames for the box (ipv4/ipv6)"], @@ -68,9 +71,12 @@ AttrPrompt = {"description": ["Purpose of the machine"], "memory": ["Installed RAM"], "disk": ["Disk Space, RAID levels, etc"], "physicalHost": ["The box hosting this virtual server"], - "sshRSAHostKey": ["A copy of /etc/ssh/ssh_*host_key.pub"], + "sshRSAHostKey": ["A copy of /etc/ssh/ssh_*host_key.pub"], "bandwidth": ["Available outbound"], - "purpose": ["The purposes of this host"],}; + "purpose": ["The purposes of this host"], + "allowedGroups": ["allowed Groups on this host"], + "exportOptions": ["additional export options"], + }; # Create a map of IDs to desc,value,attr OrderedIndex = {}; @@ -132,7 +138,7 @@ def Overview(Attrs): # Change a single attribute def ChangeAttr(Attrs,Attr): - if (Attr in ["sponsor", "sshRSAHostKey", "purpose"]): + if (Attr in ["sponsor", "sshRSAHostKey", "purpose", "allowedGroups", "exportOptions"]): return MultiChangeAttr(Attrs,Attr); print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));