Code

Added extra filter
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 11:20:08 +0000 (11:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 11:20:08 +0000 (11:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16622 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/dep-filter.xml
gosa-core/plugins/admin/departments/dep-list.xml

index cfca0014787cc935a7705a9a8fe6bdd666454db4..8505abd66711e643c82e127c28f0f803bfb911d4 100644 (file)
   </search>
 
   <search>
-    <tag>default2</tag>
-    <label>Dummy</label>
+    <tag>ou</tag>
+    <label>Organizational unit</label>
     <query>
       <backend>LDAP</backend>
-      <filter>(&amp;(objectClass=gosaDepartment)(|(dc=$)(ou=$)(o=$)(l=$)(c=$)))</filter>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=organizationalUnit)(ou=$))</filter>
     </query>
     <autocomplete>
       <frequency>0.5</frequency>
       <characters>3</characters>
       <attribute>ou</attribute>
-      <attribute>dc</attribute>
+    </autocomplete>
+  </search>
+
+  <search>
+    <tag>c</tag>
+    <label>Country</label>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=country)(c=$))</filter>
+    </query>
+    <autocomplete>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
       <attribute>c</attribute>
+    </autocomplete>
+  </search>
+
+  <search>
+    <tag>l</tag>
+    <label>Locality</label>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=locality)(l=$))</filter>
+    </query>
+    <autocomplete>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
       <attribute>l</attribute>
+    </autocomplete>
+  </search>
+
+  <search>
+    <tag>dc</tag>
+    <label>Domain component</label>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=dcObject)(dc=$))</filter>
+    </query>
+    <autocomplete>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
+      <attribute>dc</attribute>
+    </autocomplete>
+  </search>
+
+  <search>
+    <tag>o</tag>
+    <label>Organization</label>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=organization)(o=$))</filter>
+    </query>
+    <autocomplete>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
       <attribute>o</attribute>
     </autocomplete>
   </search>
+
+  <search>
+    <tag>domain</tag>
+    <label>Domain</label>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(objectClass=domain)(dc=$))</filter>
+    </query>
+    <autocomplete>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
+      <attribute>dc</attribute>
+    </autocomplete>
+  </search>
 </filterdef>
index 357be7302d06c5b53dda7da99df65f394ec0f9b8..62f547bae3a7de32abb1ea2c64a80653b76159e2 100644 (file)
@@ -94,8 +94,8 @@
 
     <action>
      <type>sub</type>
+     <image>images/lists/folder.png[new]</image>
      <label>Create</label>
-     <image>images/lists/element.png[new]</image>
 
      <action>
       <name>new_domain</name>