Code

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

gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc
gosa-plugins/rolemanagement/admin/roleManagement/class_roleManagement.inc
gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc

index d2f9487b768b9e38c9050de67da7d3db9968b375..1f2c76ff982dd50a058c41f2f692a7395313a51e 100644 (file)
@@ -73,7 +73,7 @@ class roleGeneric extends plugin {
       $ui = get_userinfo();
       $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn);
     } else {
-      $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("roleRDN"), '/i')."/","",$this->dn);
+      $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("roleGeneric", "roleRDN") , '/i')."/","",$this->dn);
     }
 
     // Keep track of naming attribute modifications
index 38d45e7aa413cfa502846df4d2e7d82fa1c32f80..7aa0defd2e89298521bbd8658c43eee10a092094 100644 (file)
@@ -38,7 +38,7 @@ class roleManagement extends management
     $this->config = $config;
     $this->ui = $ui;
    
-    $this->storagePoints = array(get_ou("roleRDN"));
+    $this->storagePoints = array(get_ou("roleGeneric", "roleRDN") );
  
     // Build filter
     if (session::global_is_set(get_class($this)."_filter")){
index 5ab586cf633f2cfdf55a4a7ba3dabb35a428e3ef..24b95e74473b06dbc9d926de7de821582fce7830 100644 (file)
@@ -55,7 +55,7 @@ class roletabs extends tabs
 
                /* Check for new 'dn', in order to propagate the
                   'dn' to all plugins */
-               $new_dn= 'cn='.$baseobject->cn.','.get_ou("roleRDN").$baseobject->base;
+               $new_dn= 'cn='.$baseobject->cn.','.get_ou("roleGeneric", "roleRDN") .$baseobject->base;
 
                /* Move role? */
                if ($this->dn != $new_dn){