Code

Removed something
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 05:38:41 +0000 (05:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 05:38:41 +0000 (05:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1472 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiHookEntry.inc

index 83551a24ad6e2fde95211b4ba1b000eec043cfda..2530af3a03342d33a5e1624cd61ea5e077512058 100644 (file)
@@ -61,7 +61,7 @@ class faiHook extends plugin
             $this->SubObjects[$object['cn'][0]][$attrs]=$object[$attrs][0];
           }
         }
-      
+     
         $this->SubObjects[$object['cn'][0]]['status']      = "edited";
         $this->SubObjects[$object['cn'][0]]['dn']          = $object['dn'];
 
index 5dd08ab682531b8668f298f82871cbdfc38ad789..01daab114fe033c30567bafa023a7b7f37c66b32 100644 (file)
@@ -35,36 +35,9 @@ class faiHookEntry extends plugin
       $this->Object_status = "new";
       $this->orig_cn       = false;
     }
-
-    if(isset($this->Object_FAIscript)){
-      $ds= ldap_connect($this->config->current['SERVER']);
-      ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
-      if(function_exists("ldap_set_rebind_proc") && isset($this->config->current['RECURSIVE']) && $this->config->current['RECURSIVE'] == "true") {
-        ldap_set_option($this->cid, LDAP_OPT_REFERRALS, 1);
-        ldap_set_rebind_proc($ds, array(&$this, "rebind"));
-      }
-
-      if(isset($this->config->current['TLS']) && $this->config->current['TLS'] == "true"){
-        ldap_start_tls($ds);
-      }
-
-      $r = ldap_bind($ds);
-      $sr= @ldap_read($ds, $this->dn, "FAIscript=*", array("FAIscript"));
-      if ($sr) {
-        $ei=ldap_first_entry($ds, $sr);
-        if ($ei) {
-          if ($info = ldap_get_values_len($ds, $ei, "FAIscript")){
-            $this->Object_FAIscript = base64_decode($info[0]);
-          }
-        }
-      }
-
-      /* close conncetion */
-      ldap_unbind($ds);
-    }
-
   }
 
+
   function execute()
   {
     /* Fill templating stuff */