From 59246aaadf02049cfee05c504d23021f3c9141d2 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 23 Jul 2009 22:52:51 +0200 Subject: [PATCH] Make ud-host do allowedGroups, exportOptions --- debian/changelog | 6 ++++++ ud-host | 14 ++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 49c8448..30577bd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +userdir-ldap (0.3.69) unstable; urgency=low + + * Make ud-host do allowedGroups, exportOptions. + + -- Peter Palfrader Thu, 23 Jul 2009 22:52:08 +0200 + userdir-ldap (0.3.68) unstable; urgency=low * userdir-ldap.conf: localsyncon = "*draghi*" 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,"")); -- 2.20.1