From: hickert Date: Mon, 10 May 2010 13:33:32 +0000 (+0000) Subject: Updated get_ou it receives values from the config registry now. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1ff720ea9c7a8ac9bcdd4ac105c35ba6d92cb9a;p=gosa.git Updated get_ou it receives values from the config registry now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18282 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc index 05c41436d..9d1c44c8f 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc @@ -69,7 +69,7 @@ class blocklistGeneric extends plugin $this->base= dn2base($ui->dn); } } else { - $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("faxBlocklistRDN"), '/')."/i", "", $this->dn); + $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("blocklistGeneric", "faxBlocklistRDN") , '/')."/i", "", $this->dn); } $this->orig_base = $this->base; @@ -216,7 +216,7 @@ class blocklistGeneric extends plugin } if ($this->dn == 'new'){ $ldap= $this->config->get_ldap_link(); - $ldap->cd (get_ou('faxBlocklistRDN').$this->config->current["BASE"]); + $ldap->cd (get_ou("blocklistGeneric", "faxBlocklistRDN") .$this->config->current["BASE"]); $ldap->search ("(&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))(cn=".$this->cn."))", array("cn")); if ($ldap->count() != 0){ $message[]= msgPool::duplicated(_("Name")); diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc index 4f59ce256..07bcaa5bb 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc @@ -38,7 +38,7 @@ class blocklist extends management $this->config = $config; $this->ui = $ui; - $this->storagePoints = array(get_ou("faxBlocklistRDN")); + $this->storagePoints = array(get_ou("blocklistGeneric", "faxBlocklistRDN") ); // Build filter if (session::global_is_set(get_class($this)."_filter")){ diff --git a/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc b/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc index 54a378674..d280acdc0 100644 --- a/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc +++ b/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc @@ -15,7 +15,7 @@ class faxblocktabs extends tabs $baseobject= $this->by_object['blocklistGeneric']; /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ - $new_dn= "cn=".$baseobject->cn.",".get_ou('faxBlocklistRDN').$baseobject->base; + $new_dn= "cn=".$baseobject->cn.",".get_ou("blocklistGeneric", "faxBlocklistRDN") .$baseobject->base; /* Move group? */ if ($this->dn != $new_dn){