summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b048a74)
raw | patch | inline | side by side (parent: b048a74)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Nov 2009 13:18:33 +0000 (13:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Nov 2009 13:18:33 +0000 (13:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14742 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index 0c3107aa2b27c75401aa25b84cedbdecf46c8b24..f85567701c92426b3dd9c05188de3101c51b9b62 100644 (file)
$this->storagePoints = array(get_ou("groupRDN"));
- // Build filter
- if (session::global_is_set(get_class($this)."_filter")){
- $filter= session::global_get(get_class($this)."_filter");
- } else {
+# // Build filter
+# if (session::global_is_set(get_class($this)."_filter")){
+# $filter= session::global_get(get_class($this)."_filter");
+# } else {
$filter = new filter(get_template_path("group-filter.xml", true));
$filter->setObjectStorage($this->storagePoints);
- }
+# }
$this->setFilter($filter);
// Build headpage
diff --git a/gosa-core/plugins/admin/groups/group-filter.tpl b/gosa-core/plugins/admin/groups/group-filter.tpl
index 52b0b7993edd0c517344c1a2905514e8c3b41ec9..c7ecdbd65256e99bc5e7e022140c5b4ffd25a43a 100644 (file)
<div style="border-top:1px solid #AAAAAA"></div>
<div style="border-top:1px solid #AAAAAA"></div>
+
+ {$PRIMARY} <LABEL for='TEMPLATES'>{t}Show primary groups{/t}</LABEL><br>
+ {$SAMBA} <LABEL for='TEMPLATES'>{t}Show samba groups{/t}</LABEL><br>
+ {$MAIL} <LABEL for='TEMPLATES'>{t}Show mail groups{/t}</LABEL><br>
+
{$SCOPE}
<table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
diff --git a/gosa-core/plugins/admin/groups/group-filter.xml b/gosa-core/plugins/admin/groups/group-filter.xml
index 97b4c634adedf39bc4869247c7ec5f5dcc9ac4cf..98e296fc41f3e211d1429cdaa98df34918d05f8f 100644 (file)
<search>
<query>
<backend>LDAP</backend>
- <filter>(&(objectClass=posixGroup))</filter>
+ <filter>(&(objectClass=posixGroup)$NAME(|$PRIMARY$MAIL$SAMBA))</filter>
<attribute>dn</attribute>
<attribute>objectClass</attribute>
<attribute>cn</attribute>
<scope>auto</scope>
</search>
+ <element>
+ <type>checkbox</type>
+ <tag>PRIMARY</tag>
+ <default></default>
+ <unset></unset>
+ <set>(!(objectClass=gosaObject))</set>
+ </element>
+
+ <element>
+ <type>checkbox</type>
+ <tag>MAIL</tag>
+ <default>true</default>
+ <unset></unset>
+ <set>(objectClass=gosaMailAccount)</set>
+ </element>
+
+ <element>
+ <type>checkbox</type>
+ <tag>SAMBA</tag>
+ <default>true</default>
+ <unset></unset>
+ <set>(objectClass=sambaGroupMapping)</set>
+ </element>
+
<element>
<type>textfield</type>
<tag>NAME</tag>