summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a18a0e3)
raw | patch | inline | side by side (parent: a18a0e3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 13:33:04 +0000 (13:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 13:33:04 +0000 (13:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18272 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc
index 97af881672e44db8ef933f6a2059451e4b08b7b0..afcfb888792285d9548af02dcf2a5d3d8ff20f51 100644 (file)
$ui = get_userinfo();
$this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn);
} else {
- $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("ogroupRDN"), '/')."/i","",$this->dn);
+ $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("group", "ogroupRDN") , '/')."/i","",$this->dn);
}
/* Detect all workstations, which are already assigned to an object group
"departments" => array("OBJ"=>"department", "CLASS"=>"gosaDepartment" ,
"DN"=> "" ,"ACL" => "department"),
"servers" => array("OBJ"=>"servgeneric", "CLASS"=>"goServer" ,
- "DN"=> get_ou('serverRDN') ,"ACL" => "server"),
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "server"),
"workstations" => array("OBJ"=>"workgeneric", "CLASS"=>"gotoWorkstation",
- "DN"=> get_ou('workstationRDN') ,"ACL" => "workstation"),
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "workstation"),
"winstations" => array("OBJ"=>"wingeneric", "CLASS"=>"opsiClient",
- "DN"=> get_ou('SAMBAMACHINEACCOUNTRDN') ,"ACL" => "winstation"),
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "winstation"),
"terminals" => array("OBJ"=>"termgeneric", "CLASS"=>"gotoTerminal" ,
- "DN"=> get_ou('terminalRDN') ,"ACL" => "terminal"),
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "terminal"),
"printers" => array("OBJ"=>"printgeneric", "CLASS"=>"gotoPrinter" ,
- "DN"=> get_ou('printerRDN') ,"ACL" => "printer"),
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "printer"),
"phones" => array("OBJ"=>"phoneGeneric", "CLASS"=>"goFonHardware" ,
- "DN"=> get_ou('phoneRDN') ,"ACL" => "phone"));
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "phone"));
/* Allow searching for applications, if we are not using release managed applications
*/
if(!$this->IsReleaseManagementActivated()){
$p_f[ "applications"] = array("OBJ"=>"application", "CLASS"=>"gosaApplication",
- "DN"=> get_ou('applicationRDN') ,"ACL" => "application");
+ "DN"=> get_ou("group", "ogroupRDN") ,"ACL" => "application");
}
/*###########
/* Permissions for that base? */
if ($this->base != ""){
- $new_dn= 'cn='.$this->cn.','.get_ou('ogroupRDN').$this->base;
+ $new_dn= 'cn='.$this->cn.','.get_ou("group", "ogroupRDN") .$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_ou('ogroupRDN').$this->base;
+ $this->dn= 'cn='.$this->cn.','.get_ou("group", "ogroupRDN") .$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 54be3f263455f80ed83332a7f93c1be39feaaf11..460cbe43a2d074f2f1f04a519f98159d26673341 100644 (file)
$this->config = $config;
$this->ui = $ui;
- $this->storagePoints = array(get_ou("ogroupRDN"));
+ $this->storagePoints = array(get_ou("group", "ogroupRDN") );
// Build filter
if (session::global_is_set(get_class($this)."_filter")){
diff --git a/gosa-core/plugins/admin/ogroups/objectSelect/class_objectSelect.inc b/gosa-core/plugins/admin/ogroups/objectSelect/class_objectSelect.inc
index f406bd7f904ec8bf838c6e5790f6eb752b829712..8a22728dd36e1fd3d71098bcfe92188f684b8531 100644 (file)
$this->config = $config;
$this->ui = $ui;
$this->storagePoints = array(
- get_ou("userRDN"),
- get_ou("groupRDN"),
- get_ou("terminalRDN"),
- get_ou("workstationRDN"),
- get_ou("serverRDN"),
- get_ou("printerRDN"),
- get_ou("phoneRDN"));
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") ,
+ get_ou("core", "userRDN") );
// Build filter
if (session::global_is_set(get_class($this)."_filter")){
diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index f7846ba3712157a700ac5057180e8598ef407352..f45a36b145982ca72c3256914b5890fd0d01d50f 100644 (file)
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
- $new_dn= 'cn='.$baseobject->cn.','.get_ou('ogroupRDN').$baseobject->base;
+ $new_dn= 'cn='.$baseobject->cn.','.get_ou("group", "ogroupRDN") .$baseobject->base;
/* Move group? */
if (LDAP::fix($this->dn) != LDAP::fix($new_dn)){
}
if ($this->dn == "new"){
- $this->dn= 'cn='.$baseobject->cn.','.get_ou('ogroupRDN').$baseobject->base;
+ $this->dn= 'cn='.$baseobject->cn.','.get_ou("group", "ogroupRDN") .$baseobject->base;
}
/* Only delete attributes if there are members left */