From: hickert Date: Fri, 4 Jul 2008 13:58:48 +0000 (+0000) Subject: Updated posix. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=828ab92c3781d7c2b7912d243bf691186a053c8e;p=gosa.git Updated posix. -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 --- diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index dcb3adfac..55c9d944e 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -388,13 +388,19 @@ class posixAccount extends plugin $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]);