summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 957c383)
raw | patch | inline | side by side (parent: 957c383)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Feb 2010 09:03:34 +0000 (09:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Feb 2010 09:03:34 +0000 (09:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15654 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc
index 66ec3effdb58f64a8beca8c1fc4e3f7e0fd105cb..d71cd3b4204a2fb12ade2da26389d6a5dbc0ff79 100644 (file)
$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_winstations_ou(), '/')."/i", "", $this->dn);
}