From: hickert Date: Fri, 19 Feb 2010 09:03:26 +0000 (+0000) Subject: Updated base detection for incoming objects. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=957c383fd0dd025568267b176f1a3490fe86c670;p=gosa.git Updated base detection for incoming objects. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15653 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 030ba096f..5ff6b3d65 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -88,6 +88,8 @@ class servgeneric extends plugin $ui= get_userinfo(); $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn); $this->cn= ""; + } elseif(preg_match("/".preg_quote(get_ou("systemIncomingRDN"), '/')."/i", $this->dn)){ + $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("systemIncomingRDN"), '/')."/i", "", $this->dn); } else { $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("serverRDN"), '/')."/i", "", $this->dn); }