Code

Updated FAI ACLs.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 11:04:30 +0000 (11:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 11:04:30 +0000 (11:04 +0000)
-Do not search for dummy objects like cn=dummy1,$base, they can't exits and therefore can't match any filter.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12936 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiManagement.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiProfile.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc

index 2e0119adfc600c2b25bf38d29891d836d7adc296..9f24f624c57c154bfc43db7ae0f06a442563aa92 100644 (file)
@@ -102,7 +102,7 @@ class faiHook extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn = session::get('CurrentMainBase');
+        $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }
index b305d4e1473cedd97fee791175c2252c319c916e..e5f1bd8c6a3287afc75c055bbf8754e2bed563e2 100644 (file)
@@ -918,7 +918,7 @@ class faiManagement extends plugin
     if($s_action == "new_profile"){
       $this->dn = "new" ;
 
-      $acl = $this->ui->get_permissions($this->fai_base,"fai/faiProfile");
+      $acl = $this->ui->get_permissions($this->acl_base,"fai/faiProfile");
       if(preg_match("/c/",$acl)){
         $a_setup= $this->get_type(array("objectClass"=>array("FAIprofile")));
         $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
index acc749bfe775304e2e92b0a5c57e083fbc2a3fd9..8ad852ab8abe65d06f5df53eca2f3f4347be5b33 100644 (file)
@@ -84,7 +84,7 @@ class faiPartitionTable extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn = session::get('CurrentMainBase');
+        $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }
index 269652ff85d6b08e4f2faa123929054b25153f30..d92e5178ba23248087e8cdf2bfaed76fe5638642 100644 (file)
@@ -120,7 +120,7 @@ class faiProfile extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn = session::get('CurrentMainBase');
+        $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }
index 7bdc914dbea37f2e342f2fc5e75321d1e18a1e70..db8e38e68da18b904c6dcee6e003bacc3a2fb982 100644 (file)
@@ -110,7 +110,7 @@ class faiScript extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn= "cn=dummy,".session::get('CurrentMainBase');
+        $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }
index 5f0965c813376b397b02c65dedad423c1aa29fc8..b25f018c044cd7b607d49b5a59c1a707c762ac23 100644 (file)
@@ -345,7 +345,7 @@ class faiTemplate extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn = session::get('CurrentMainBase');
+        $dn = $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }
index c5e18af3b87af365aa3fe3182adfeebb3623c051..2f3249fce520f51000e9b58161f1fa55bf2c7b0b 100644 (file)
@@ -65,7 +65,7 @@ class faiVariable extends plugin
   {
     if($dn == "new" || $dn == ""){
       if($this->dn == "new"){
-        $dn = session::get('CurrentMainBase');
+        $dn= $this->parent->parent->acl_base;
       }else{
         $dn = $this->dn;
       }