summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a5a1a79)
raw | patch | inline | side by side (parent: a5a1a79)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Jan 2008 09:35:15 +0000 (09:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Jan 2008 09:35:15 +0000 (09:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8189 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/fai/class_faiManagement.inc b/gosa-core/plugins/admin/fai/class_faiManagement.inc
index 3fea1c5c070886b2476cf195d0e005cbdf8fd1a0..178f000351402126fb200e62159b3767b0a41093 100644 (file)
$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 19284661d0870feb2755e7d07218761567e0bba9..bbb19426205a71a559f4435ae134e1c2cede4216 100644 (file)
}
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 f9b19ea2a94c94f2ca7f42981f47dbfce276aae0..c7e1175c6ac5ad7cc0935403d97ab92d64c36385 100644 (file)
/* 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));
}
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 9293903e1e4033182685eac9ae684ae149ba0425..32a67470584370d3807cb104e72309606c6de210 100644 (file)
$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){