From b66e66e4f9d0a59d2e0097d047d68516518ffdbd Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 3 Jan 2008 09:35:15 +0000 Subject: [PATCH] Some additional hardcoded department links moved to get_ou() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8189 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/fai/class_faiManagement.inc | 2 +- .../gofax/gofax/blocklists/class_blocklistGeneric.inc | 2 +- .../gofax/gofax/blocklists/class_blocklistManagement.inc | 4 ++-- gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/admin/fai/class_faiManagement.inc b/gosa-core/plugins/admin/fai/class_faiManagement.inc index 3fea1c5c0..178f00035 100644 --- a/gosa-core/plugins/admin/fai/class_faiManagement.inc +++ b/gosa-core/plugins/admin/fai/class_faiManagement.inc @@ -456,7 +456,7 @@ class faiManagement extends plugin $name = $br[$bb]; $ldap->cd($bb); $ldap->recursive_remove(); - $ldap->cd(preg_replace('/,'.get_ou('faiou').'/', ','.get_ou('applicationou'), $bb)); + $ldap->cd(preg_replace('/,'.normalizePreg(get_ou('faiou')).'/', ','.get_ou('applicationou'), $bb)); $ldap->recursive_remove(); $this->DivListFai->selectedBranch = "main"; diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc index 19284661d..bbb194262 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc @@ -209,7 +209,7 @@ class blocklistGeneric extends plugin } if ($this->dn == 'new'){ $ldap= $this->config->get_ldap_link(); - $ldap->cd ("ou=gofax,ou=systems,".$this->config->current["BASE"]); + $ldap->cd (get_ou('blocklistou').$this->config->current["BASE"]); $ldap->search ("(&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))(cn=".$this->cn."))", array("cn")); if ($ldap->count() != 0){ $message[]= _("Specified name is already used."); diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc index f9b19ea2a..c7e1175c6 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc @@ -346,7 +346,7 @@ class blocklist extends plugin /* Return departments, that will be included within snapshot detection */ function get_used_snapshot_bases() { - return(array("ou=gofax,ou=systems,". $this->DivListBlocklist->selectedBase)); + return(array(get_ou('blocklistou').$this->DivListBlocklist->selectedBase)); } @@ -367,7 +367,7 @@ class blocklist extends plugin if($SubSearch){ $Flags |= GL_SUBSEARCH; }else{ - $base = "ou=gofax,ou=systems,".$base; + $base = get_ou('blocklistou').$base; } /* Create filter */ diff --git a/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc b/gosa-plugins/gofax/gofax/blocklists/tabs_blocklist.inc index 9293903e1..32a674705 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.",ou=gofax,ou=systems,".$baseobject->base; + $new_dn= "cn=".$baseobject->cn.",".get_ou('blocklistou').$baseobject->base; /* Move group? */ if ($this->dn != $new_dn){ -- 2.30.2