<?xml version="1.0" encoding="UTF-8"?>

<filterdef>
  <definition>
    <category>users</category>
    <initial>true</initial>
    <default>default</default>
    <scope>auto</scope>
    <attribute>dn</attribute>
    <attribute>objectClass</attribute>
    <attribute>givenName</attribute>
    <attribute>sn</attribute>
    <attribute>uid</attribute>
    <attribute>userPassword</attribute>
  </definition>

  <search>
    <tag>default</tag>
    <label>Default filter</label>
    <query>
      <backend>LDAP</backend>
      <filter>(&amp;(objectClass=gosaAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
    </query>
    <autocomplete>
      <attribute>cn</attribute>
      <frequency>0.5</frequency>
      <characters>3</characters>
    </autocomplete>
  </search>

  <search>
    <tag>template</tag>
    <label>Show templates</label>
    <query>
      <backend>LDAP</backend>
      <filter>(&amp;(objectClass=gosaUserTemplate)(|(cn=$)(sn=$)(uid=$)))</filter>
    </query>
    <autocomplete>
      <attribute>mail</attribute>
      <frequency>0.5</frequency>
      <characters>3</characters>
    </autocomplete>
  </search>

  <search>
    <tag>posix</tag>
    <label>Show POSIX users</label>
    <query>
      <backend>LDAP</backend>
      <filter>(&amp;(objectClass=gosaAccount)(objectClass=posixAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
    </query>
    <autocomplete>
      <attribute>cn</attribute>
      <frequency>0.5</frequency>
      <characters>3</characters>
    </autocomplete>
  </search>

  <search>
    <tag>samba</tag>
    <label>Show SAMBA users</label>
    <query>
      <backend>LDAP</backend>
      <filter>(&amp;(objectClass=gosaAccount)(objectClass=sambaSamAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
    </query>
    <autocomplete>
      <attribute>cn</attribute>
      <frequency>0.5</frequency>
      <characters>3</characters>
    </autocomplete>
  </search>

  <search>
    <tag>mail</tag>
    <label>Show mail users</label>
    <query>
      <backend>LDAP</backend>
      <filter>(&amp;(objectClass=gosaAccount)(objectClass=gosaMailAccount)(|(cn=$)(sn=$)(uid=$)(mail=$)))</filter>
    </query>
    <autocomplete>
      <attribute>mail</attribute>
      <frequency>0.5</frequency>
      <characters>3</characters>
    </autocomplete>
  </search>

</filterdef>
