Code

Added storage RDN properties.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:06:34 +0000 (13:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:06:34 +0000 (13:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18249 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_componentGeneric.inc

index ac011604895b06fc2187ede90bec1cff8d12ffdb..209b14fca746c7e8de51080e52e72219c4f1c72e 100644 (file)
@@ -288,21 +288,35 @@ class componentGeneric extends plugin
   /* Return plugin informations for acl handling */
   static function plInfo()
   {
-    return (array(
-          "plShortName"   => _("Generic"),
-          "plDescription" => _("Component generic"),
-          "plSelfModify"  => FALSE,
-          "plDepends"     => array(),
-          "plPriority"    => 1,
-          "plSection"     => array("administration"),
-          "plCategory"    => array("component" => array("description"  => _("Network device"),
-                                                        "objectClass"  => array("device", "ipHost", "ieee802Device"))),
+      return (array(
+                  "plShortName"   => _("Generic"),
+                  "plDescription" => _("Component generic"),
+                  "plSelfModify"  => FALSE,
+                  "plDepends"     => array(),
+                  "plPriority"    => 1,
+                  "plSection"     => array("administration"),
+                  "plCategory"    => array("component" => array("description"  => _("Network device"),
+                          "objectClass"  => array("device", "ipHost", "ieee802Device"))),
+                  "plProperties" =>
+                  array(
+                      array(
+                          "name"          => "componentRDN",
+                          "type"          => "rdn",
+                          "default"       => "ou=netdevices,ou=systems,",
+                          "description"   => "The 'componentRDN' statement defines the location where new components will be created. The default is 'ou=netdevices,ou=systems,'.",
+                          "check"         => "gosaProperty::isRdn",
+                          "migrate"       => "",
+                          "group"         => "plugin",
+                          "mandatory"     => FALSE
+                          )
+                      ),
+
           "plProvidedAcls"=> array(
-            "cn"                  => _("Name"),
-            "base"                => _("Base"),
-            "description"         => _("Description"),
-            "userPassword"      => _("Root password"))
-          ));
+                  "cn"                  => _("Name"),
+                  "base"                => _("Base"),
+                  "description"         => _("Description"),
+                  "userPassword"      => _("Root password"))
+              ));
   }
 
   /* Display generic part for server copy & paste */