summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adf9bc7)
raw | patch | inline | side by side (parent: adf9bc7)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2011 07:14:43 +0000 (07:14 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2011 07:14:43 +0000 (07:14 +0000) |
When asking for object groups during system creation,
filter list of available object groups by unittag.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20903 594d385d-05f5-0310-b6e9-bd551577e9d8
filter list of available object groups by unittag.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20903 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/systems/admin/systems/class_askOgroup.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/systems/admin/systems/class_askOgroup.inc b/trunk/gosa-plugins/systems/admin/systems/class_askOgroup.inc
index 5788dbc9082a34acadd9af2da957e1e09896e74c..e91c8e94b2eabeaa6daf99f6da4e91361d8b992d 100644 (file)
/* Get a list of object groups */
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $ldap->search('(objectClass=gosaGroupOfNames)', array("cn"));
+ if (isset($this->config->current['HONOURUNITTAGS']) &&
+ preg_match('/true/i', $this->config->current['HONOURUNITTAGS'])) {
+ $ldap->search('(&(objectClass=gosaGroupOfNames)(gosaUnitTag='.$ui->gosaUnitTag.'))', array("cn"));
+ } else {
+ $ldap->search('(objectClass=gosaGroupOfNames)', array("cn"));
+ }
$tmp = array();
while($attrs = $ldap->fetch()) {
$tmp[$attrs['dn']] = $attrs['cn'][0];