summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f11deab)
raw | patch | inline | side by side (parent: f11deab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Jan 2008 07:19:52 +0000 (07:19 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Jan 2008 07:19:52 +0000 (07:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8304 594d385d-05f5-0310-b6e9-bd551577e9d8
index 07ce7ded7eb41ea0baad61a2101382f4bb3df1e5..0754d26eca09293ebe1609155ec7088cd1effb94 100644 (file)
{
global $config;
- $map = array( "applicationou" => "ou=apps,",
+ $map = array(
+ "ogroupou" => "ou=groups,",
+ "applicationou" => "ou=apps,",
"systemsou" => "ou=systems,",
"serverou" => "ou=servers,ou=systems,",
"terminalou" => "ou=terminals,ou=systems,",
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc
index 14b11c95ca49091c4c45e55993c6fbd96a059e68..ef6388f32550e37b33025b504bf4c60c351fbfce 100644 (file)
if ($this->dn == "new"){
$this->base = session::get('CurrentMainBase');
} else {
- $this->base= preg_replace("/^[^,]+,".get_groups_ou()."/","",$this->dn);
+ $this->base= preg_replace("/^[^,]+,".normalizePreg(get_ou("ogroupou"))."/","",$this->dn);
}
/* Load member data */
###########*/
$p_f= array("accounts" => array("CLASS"=>"gosaAccount" ,"DN"=> get_people_ou() ,"ACL" => "users"),
- "groups" => array("CLASS"=>"posixGroup" ,"DN"=> get_groups_ou() ,"ACL" => "groups"),
+ "groups" => array("CLASS"=>"posixGroup" ,"DN"=> get_groups_ou('ogroupou') ,"ACL" => "groups"),
"applications" => array("CLASS"=>"gosaApplication","DN"=> get_ou('applicationou') ,"ACL" => "application"),
"departments" => array("CLASS"=>"gosaDepartment" ,"DN"=> "" ,"ACL" => "department"),
"servers" => array("CLASS"=>"goServer" ,"DN"=> get_ou('serverou') ,"ACL" => "server"),
/* Permissions for that base? */
if ($this->base != ""){
- $new_dn= 'cn='.$this->cn.','.get_groups_ou().$this->base;
+ $new_dn= 'cn='.$this->cn.','.get_ou('ogroupou').$this->base;
} else {
$new_dn= $this->dn;
}
/* New accounts need proper 'dn', propagate it to remaining objects */
if ($this->dn == 'new'){
- $this->dn= 'cn='.$this->cn.','.get_groups_ou().$this->base;
+ $this->dn= 'cn='.$this->cn.','.get_ou('ogroupou').$this->base;
}
/* Save data. Using 'modify' implies that the entry is already present, use 'add' for
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
index 1515f9d29274ce713b66bc39c1219654efda601b..f7f7caec817b7f788f7c8bbe722e4357303c9222 100644 (file)
/* Return departments, that will be included within snapshot detection */
function get_used_snapshot_bases()
{
- return(array(get_groups_ou().$this->DivListOGroup->selectedBase));
+ return(array(get_ou('ogroupou').$this->DivListOGroup->selectedBase));
}
$filter= "(&(cn=$Regex)(objectClass=gosaGroupOfNames)(|$filter))";
if($this->DivListOGroup->SubSearch){
- $res= get_sub_list($filter, "ogroups",get_groups_ou(), $base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT | GL_SUBSEARCH);
+ $res= get_sub_list($filter, "ogroups",get_ou('ogroupou'), $base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT | GL_SUBSEARCH);
}else{
- $res= get_sub_list($filter, "ogroups",get_groups_ou(), get_groups_ou().$base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT );
+ $res= get_sub_list($filter, "ogroups",get_ou('ogroupou'), get_ou('ogroupou').$base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT );
}
$this->ogrouplist= $res;
diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index 3485bb79f6f9462bd603abc451b67f9658e5ffeb..6d3c018af5701249122f96eaa6bbeb1385339804 100644 (file)
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
- $new_dn= 'cn='.$baseobject->cn.','.get_groups_ou().$baseobject->base;
+ $new_dn= 'cn='.$baseobject->cn.','.get_ou('ogroupou').$baseobject->base;
/* Move group? */
if ($this->dn != $new_dn){
}
if ($this->dn == "new"){
- $this->dn= 'cn='.$baseobject->cn.','.get_groups_ou().$baseobject->base;
+ $this->dn= 'cn='.$baseobject->cn.','.get_ou('ogroupou').$baseobject->base;
}
tabs::save();