From: hickert Date: Mon, 1 Feb 2010 08:36:04 +0000 (+0000) Subject: Fixed base preselection for new systems, phones ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7619ee9337ac981ce521e0e547c6f6a06896cf35;p=gosa.git Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 83cba2f75..0e86949f3 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -86,7 +86,7 @@ class servgeneric extends plugin /* Set base */ if ($this->dn == "new"){ $ui= get_userinfo(); - $this->base= dn2base($ui->dn); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn); $this->cn= ""; } else { $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("serverRDN"), '/')."/i", "", $this->dn);