From: hickert Date: Fri, 22 Feb 2008 12:58:12 +0000 (+0000) Subject: Updated posix account. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39d6fba0219cd020925ab9bd7a5ab285b1d83525;p=gosa.git Updated posix account. -System add dialog displays a correct set on systems now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9071 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 04d61596f..df0c70a9d 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -376,7 +376,12 @@ class posixAccount extends plugin } $regex= $sysfilter['regex']; $filter= "(&(|(objectClass=goServer)(objectClass=gotoWorkstation)(objectClass=gotoTerminal))$exclude(cn=*)(cn=$regex))"; - $res= get_list($filter, "groups", $sysfilter['depselect'], array("cn"), GL_SUBSEARCH | GL_SIZELIMIT); + + $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); $wslist= array(); foreach ($res as $attrs){ $wslist[]= preg_replace('/\$/', '', $attrs['cn'][0]);