From: hickert Date: Thu, 10 Apr 2008 11:49:46 +0000 (+0000) Subject: Fixed componentGeneric base, detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c13977b39c73a71ea2977c1f10a6123568ef7cd;p=gosa.git Fixed componentGeneric base, detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index 8fe4eb5f1..bfec11c82 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -48,7 +48,7 @@ class componentGeneric extends plugin $this->base= dn2base($ui->dn); $this->cn= ""; } else { - $this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,/", "", $this->dn); + $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("componentou"))."/", "", $this->dn); } $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses, true); /* Save dn for later references */