Code

Updated filter
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Oct 2009 17:20:46 +0000 (17:20 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Oct 2009 17:20:46 +0000 (17:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14689 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index e3564853e9b11b8688d7c578605ad73be67ffa52..aecf9d4beebe3f52a2f5bc0f4e87abd7534113b8 100644 (file)
@@ -8,14 +8,13 @@
 
 <div style="border-top:1px solid #AAAAAA"></div>
 
- <div style="border-top:1px solid #AAAAAA"></div>
  {$SCOPE}
 
  <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
   <tr>
    <td>
     <label for="NAME">
-     <img src="images/lists/search.png" align=middle>&nbsp;Name
+     <img src="images/lists/search.png" align=middle>&nbsp;{$NAME}
     </label>
    </td>
   </tr>
index 398218dc71861258ee6b3a7633608e2839069571..3234679603b563ab33c7c3fd549be3e6233778fb 100644 (file)
@@ -10,7 +10,7 @@
   <search>
     <query>
       <backend>LDAP</backend>
-      <filter>(objectClass=gosaDepartment)</filter>
+      <filter>(&amp;(objectClass=gosaDepartment)$NAME)</filter>
       <attribute>dn</attribute>
       <attribute>objectClass</attribute>
       <attribute>ou</attribute>
     <scope>auto</scope>
   </search>
 
+  <element>
+    <type>textfield</type>
+    <tag>NAME</tag>
+    <size>20</size>
+    <maxlength>60</maxlength>
+    <default></default>
+    <unset></unset>
+    <set>(|(ou=*$*)(dc=*$*)(c=*$*)(l=*$*))</set>
+    <alphabet>true</alphabet>
+    <autocomplete>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaDepartment)(|(ou=*$NAME*)(dc=*$NAME*)(l=*$NAME*)(c=*$NAME*)))</filter>
+      <attribute>cn</attribute>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
+    </autocomplete>
+  </element>
+
 </filterdef>