Code

Updated group filter.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Nov 2009 13:18:33 +0000 (13:18 +0000)
committerhickert <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

gosa-core/plugins/admin/groups/class_groupManagement.inc
gosa-core/plugins/admin/groups/group-filter.tpl
gosa-core/plugins/admin/groups/group-filter.xml

index 0c3107aa2b27c75401aa25b84cedbdecf46c8b24..f85567701c92426b3dd9c05188de3101c51b9b62 100644 (file)
@@ -40,13 +40,13 @@ class groupManagement extends management
    
     $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
index 52b0b7993edd0c517344c1a2905514e8c3b41ec9..c7ecdbd65256e99bc5e7e022140c5b4ffd25a43a 100644 (file)
@@ -9,6 +9,11 @@
 <div style="border-top:1px solid #AAAAAA"></div>
 
  <div style="border-top:1px solid #AAAAAA"></div>
+
+ {$PRIMARY}&nbsp;<LABEL for='TEMPLATES'>{t}Show primary groups{/t}</LABEL><br>
+ {$SAMBA}&nbsp;<LABEL for='TEMPLATES'>{t}Show samba groups{/t}</LABEL><br>
+ {$MAIL}&nbsp;<LABEL for='TEMPLATES'>{t}Show mail groups{/t}</LABEL><br>
+
  {$SCOPE}
 
  <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
index 97b4c634adedf39bc4869247c7ec5f5dcc9ac4cf..98e296fc41f3e211d1429cdaa98df34918d05f8f 100644 (file)
@@ -10,7 +10,7 @@
   <search>
     <query>
       <backend>LDAP</backend>
-      <filter>(&amp;(objectClass=posixGroup))</filter>
+      <filter>(&amp;(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>