From f359e5d476ca2d0cd5e337e17d1826d0ecd3553c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Oct 2005 05:38:41 +0000 Subject: [PATCH] Removed something git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1472 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 2 +- plugins/admin/fai/class_faiHookEntry.inc | 29 +----------------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 83551a24a..2530af3a0 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -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']; diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 5dd08ab68..01daab114 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -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 */ -- 2.30.2