summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4d2cf7)
raw | patch | inline | side by side (parent: f4d2cf7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 10:41:38 +0000 (10:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Sep 2006 10:41:38 +0000 (10:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4692 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index ee633e297f36ad6090d002f48e447d8943ad2a42..6c9483be6cf10ffac9db2da256efe8b7c8708bc7 100644 (file)
/* This array represents the combination between checkboxes and search filters */
$objs = array( "ShowServers" => array("CLASS" => "goServer" ,"TREE" => "ou=servers,ou=systems," ),
- "ShowTerminals" => array("CLASS" => "goHard" ,"TREE" => "ou=terminals,ou=systems,"),
+ "ShowTerminals" => array("CLASS" => "gotoTerminal" ,"TREE" => "ou=terminals,ou=systems,"),
"ShowPrinters" => array("CLASS" => "gotoPrinter" ,"TREE" => "ou=printers,ou=systems," ),
"ShowDevices" => array("CLASS" => "ieee802Device" ,"TREE" => "ou=netdevices,ou=systems," ),
"ShowPhones" => array("CLASS" => "goFonHardware" ,"TREE" => "ou=phones,ou=systems," ),
/* Detect type of object and create an entry for $this->terminals */
$terminal = array();
-
if (in_array_ics('gotoTerminal', $value["objectClass"])){
/* check acl */
- $acl = $ui->get_permissions($value['dn'],"terminal");
+ $acl = $ui->get_permissions($value['dn'],"terminal/termgeneric");
if($add != "" || preg_match("/r/",$acl)) {
-
if (isset($value["macAddress"][0]) && $value["macAddress"][0] != "-"){
$terminal = $value;
$terminal['type'] = "T";
}
} elseif (in_array_ics('gotoWorkstation', $value["objectClass"])){
- $acl = $ui->get_permissions($value['dn'],"workstation");
+ $acl = $ui->get_permissions($value['dn'],"workstation/workgeneric");
if($add != "" || preg_match("/r/",$acl)) {
-
if (isset($value["macAddress"][0]) && $value["macAddress"][0] != "-"){
$terminal = $value;
$terminal['type'] = "L";
}
}
} elseif (in_array_ics('gotoPrinter', $value["objectClass"])){
-
- $acl = $ui->get_permissions($value['dn'],"printer");
+
+
+ $acl = $ui->get_permissions($value['dn'],"printer/printgeneric");
if($add != "" || preg_match("/r/",$acl)) {
$terminal = $value;
}
} elseif (in_array_ics('goServer', $value["objectClass"])){
- $acl = $ui->get_permissions($value['dn'],"server");
+ $acl = $ui->get_permissions($value['dn'],"server/servgeneric");
if($add != "" || preg_match("/r/",$acl)) {
$terminal = $value;
}
} elseif (in_array_ics('goFonHardware', $value["objectClass"])){
- $acl = $ui->get_permissions($value['dn'],"phone");
+ $acl = $ui->get_permissions($value['dn'],"phone/phoneGeneric");
if($add != "" || preg_match("/r/",$acl)) {
$terminal = $value;
}
}elseif (in_array_ics("GOhard",$value['objectClass'])){
- $acl = $ui->get_permissions($value['dn'],"server").$ui->get_permissions($value['dn'],"terminal").$ui->get_permissions($value['dn'],"workstation");
+ $acl = $ui->get_permissions($value['dn'],"server/servgeneric").
+ $ui->get_permissions($value['dn'],"terminal/termgeneric").
+ $ui->get_permissions($value['dn'],"workstation/workgeneric");
if($add != "" || preg_match("/r/",$acl)) {
$terminal = $value;
}
} elseif (in_array_ics('ieee802Device', $value["objectClass"])){
- $acl = $ui->get_permissions($value['dn'],"component");
+ $acl = $ui->get_permissions($value['dn'],"component/componentGeneric");
if($add != "" || preg_match("/r/",$acl)) {
$terminal = $value;