summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82d4560)
raw | patch | inline | side by side (parent: 82d4560)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jul 2008 13:58:48 +0000 (13:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jul 2008 13:58:48 +0000 (13:58 +0000) |
-Fixed permissions for accessTo system selection, if the "systems" plugin is not installed.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11539 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11539 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index dcb3adfac65a3dffa55c2914251b6071981c6076..55c9d944edae25bd4c409dcada852dc83355cf5b 100644 (file)
$exclude= "(!(|$exclude))";
}
$regex= $sysfilter['regex'];
+
+ $acls = array();
+ if(class_available("servgeneric")) $acls[] = "server";
+ if(class_available("workgeneric")) $acls[] = "worstation";
+ if(class_available("termgeneric")) $acls[] = "terminal";
+
$filter= "(&(|(objectClass=goServer)(objectClass=gotoWorkstation)(objectClass=gotoTerminal))$exclude(cn=*)(cn=$regex))";
$deps_a = array(get_ou("serverou"),
get_ou("terminalou"),
get_ou("workstationou"));
- $res= get_sub_list($filter, array("terminal","server","workstation"), $deps_a, get_ou("systemsou").$sysfilter['depselect'], array("cn"), GL_SUBSEARCH | GL_SIZELIMIT);
+ $res= get_sub_list($filter, $acls, $deps_a, get_ou("systemsou").$sysfilter['depselect'], array("cn"), GL_SUBSEARCH | GL_SIZELIMIT);
$wslist= array();
foreach ($res as $attrs){
$wslist[]= preg_replace('/\$/', '', $attrs['cn'][0]);