From: hickert Date: Tue, 5 Jan 2010 09:13:19 +0000 (+0000) Subject: Updated license mangement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f31de1ff52347618e33cf71bfb8d8bc44dfa2126;p=gosa.git Updated license mangement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15039 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_filterOpsiLicense.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_filterOpsiLicense.inc index 2a45bb0eb..368aeafb6 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_filterOpsiLicense.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_filterOpsiLicense.inc @@ -17,7 +17,10 @@ class filterOpsiLicense { // Reset the list of licenses foreach($res as $item){ + $item['objectClass'] = array('fake_opsiLicense'); + // Fake an ldap entry, this enables ACL checks. + $entry = array(); $entry['dn'] = "opsi:cn=".$item['cn'][0].",".$config->current['BASE']; foreach($item as $name => $value){ $entry[] = $name; diff --git a/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml b/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml index af1ba4e5f..220ee4025 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml +++ b/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-filter.xml @@ -2,7 +2,7 @@ - roles + opsi true @@ -10,7 +10,7 @@ OpsiLicense - (&(objectClass=organizationalRole)$NAME) + (&(objectClass=fake_opsiLicense)$NAME) dn objectClass cn @@ -29,8 +29,8 @@ (cn=*$*) false - LDAP - (&(objectClass=organizationalRole)(cn=*$NAME*)) + OpsiLicense + (&(objectClass=fake_opsiLicense)(cn=*$NAME*)) cn 0.5 3 diff --git a/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-list.xml b/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-list.xml index 17aab5031..ba68c47b5 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-list.xml +++ b/gosa-plugins/opsi/admin/opsiLicenses/opsiLicense-list.xml @@ -8,15 +8,15 @@ true roles - + 1 - - organizationalRole - roles - role - plugins/rolemanagement/images/role.png + + fake_opsiLicense + opsi + licenseGeneric + plugins/opsi/images/license.png @@ -70,7 +70,7 @@ new entry - plugins/rolemanagement/images/new.png + plugins/opsi/images/license.png