From 39d6fba0219cd020925ab9bd7a5ab285b1d83525 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Feb 2008 12:58:12 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/posix/class_posixAccount.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]); -- 2.30.2