Code

Updated get_ou it receives values from the config registry now.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:32:48 +0000 (13:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:32:48 +0000 (13:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18267 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
gosa-plugins/goto/admin/devices/class_deviceManagement.inc
gosa-plugins/goto/admin/devices/tabs_devices.inc

index 037963de6088bed57a04b39341881eeb0f984fd5..81993e1a2e27dc849553b26268feb8de091becd4 100644 (file)
@@ -56,7 +56,7 @@ class deviceGeneric extends plugin
         $this->base= dn2base($ui->dn);
       }
     } else {
-      $this->base =preg_replace ("/^[^,]+,".preg_quote(get_ou('deviceRDN'), '/')."/i","",$this->dn);
+      $this->base =preg_replace ("/^[^,]+,".preg_quote(get_ou("deviceGeneric", "deviceRDN") , '/')."/i","",$this->dn);
     }
     $this->orig_base = $this->base;
     $this->orig_dn   = $this->dn;
index 7ec0081b59cd2ce27ed401237dec1bd7135aea24..606f7b819877abf135a7917282696f879f744638 100644 (file)
@@ -42,7 +42,7 @@ class deviceManagement extends management
 
     $filter_xml = "device-filter.xml";
     $list_xml = "device-list.xml";
-    $this->storagePoints= array(get_ou("deviceRDN"));
+    $this->storagePoints= array(get_ou("deviceGeneric", "deviceRDN") );
 
     // Build filter
     if (session::global_is_set(get_class($this)."_filter")){
index e2b49799385024dc60971ddce09f271dac46b669..12904f5a78db91f076b5665a9ed86a0ff51958a2 100644 (file)
@@ -15,7 +15,7 @@ class devicetabs extends tabs
   function save($ignore_account= FALSE)
   {
     $baseobject= $this->by_object['deviceGeneric'];
-    $new_dn= "cn=".$baseobject->cn.",".get_ou('deviceRDN').$baseobject->base;
+    $new_dn= "cn=".$baseobject->cn.",".get_ou("deviceGeneric", "deviceRDN") .$baseobject->base;
 
     /* Move group? */
     if ($this->dn != $new_dn){