Make ud-host do allowedGroups, exportOptions userdir-ldap-0.3.69
authorPeter Palfrader <peter@palfrader.org>
Thu, 23 Jul 2009 20:52:51 +0000 (22:52 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 23 Jul 2009 20:52:51 +0000 (22:52 +0200)
debian/changelog
ud-host

index 49c8448..30577bd 100644 (file)
@@ -1,3 +1,9 @@
+userdir-ldap (0.3.69) unstable; urgency=low
+
+  * Make ud-host do allowedGroups, exportOptions.
+
+ -- Peter Palfrader <weasel@debian.org>  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 (executable)
--- 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,""));