Code

Added test filter to keep it somewhere
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Aug 2009 15:42:26 +0000 (15:42 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Aug 2009 15:42:26 +0000 (15:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14010 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/contrib/filters/user-filter.xml [new file with mode: 0644]

diff --git a/gosa-core/contrib/filters/user-filter.xml b/gosa-core/contrib/filters/user-filter.xml
new file mode 100644 (file)
index 0000000..e35f9d0
--- /dev/null
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<filter>
+  <definition>
+    <target>users</target>
+    <template>users.tpl</template>
+  </definition>
+
+  <search>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;(!(objectClass=gosaUserTemplate))(|$GENERIC$POSIX$MAIL$SAMBA)(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
+      <attribute>dn</attribute>
+      <attribute>objectClass</attribute>
+      <attribute>cn</attribute>
+      <attribute>mail</attribute>
+      <attribute>uid</attribute>
+      <attribute>modifyTimestamp</attribute>
+    </query>
+    <query>
+      <backend>LDAP</backend>
+      <filter>(&amp;$TEMPLATE(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
+      <attribute>dn</attribute>
+      <attribute>objectClass</attribute>
+      <attribute>cn</attribute>
+      <attribute>mail</attribute>
+      <attribute>uid</attribute>
+      <attribute>modifyTimestamp</attribute>
+    </query>
+    <base>false</base>
+    <scope>auto</scope>
+  </search>
+
+  <element>
+    <type>textfield</type>
+    <tag>NAME</tag>
+    <!--<regex>^...</regex>-->
+    <alphabet>true</alphabet>
+    <default>*</default>
+    <unset>this is a not valid and failing filter</unset>
+    <set>$</set>
+    <autocomplete>
+      <backend>LDAP</backend>
+      <filter>(&amp;(objectClass=gosaAccount)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)))</filter>
+      <attribute>cn</attribute>
+      <frequency>0.5</frequency>
+      <characters>3</characters>
+    </autocomplete>
+  </element>
+
+  <element>
+    <type>checkbox</type>
+    <tag>TEMPLATE</tag>
+    <default></default>
+    <unset>(!(objectClass=gosaUserTemplate))</unset>
+    <set>(objectClass=gosaUserTemplate)</set>
+  </element>
+
+  <element>
+    <type>checkbox</type>
+    <tag>GENERIC</tag>
+    <default>true</default>
+    <unset></unset>
+    <set>(&amp;(objectClass=gosaAccount)(!(|(objectClass=posixAccount)(objectClass=gosaMailAccount)(objectClass=sambaSamAccount)(objectClass=gosaProxyAccount))))</set>
+  </element>
+
+  <element>
+    <type>checkbox</type>
+    <tag>POSIX</tag>
+    <default>true</default>
+    <unset></unset>
+    <set>(objectClass=posixAccount)</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=sambaSamAccount)</set>
+  </element>
+
+  <element>
+    <type>combobox</type>
+    <tag>ROLLE</tag>
+    <unset></unset>
+    <set></set>
+    <default>*</default>
+    <value>
+      <key>*</key>
+      <set>Alle</set>
+    </value>
+    <autocomplete>
+      <backend>LDAP</backend>
+      <filter>(objectClass=organizationalRole)</filter>
+      <attribute>cn</attribute>
+      <key>cn</key>
+    </autocomplete>
+   </element>
+
+</filter>
+