diff --git a/gosa-core/plugins/admin/users/user-filter.xml b/gosa-core/plugins/admin/users/user-filter.xml
index eb9d83f3d11d44938e01c265ff106f9459d5bea0..546d47652c4d04a8753bcc2495766e3ca0add99c 100644 (file)
<filterdef>
<definition>
<category>users</category>
<filterdef>
<definition>
<category>users</category>
- <template>user-filter.tpl</template>
<initial>true</initial>
<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>
</definition>
<search>
+ <tag>default</tag>
+ <label>Default filter</label>
<query>
<backend>LDAP</backend>
<query>
<backend>LDAP</backend>
- <filter>(&(!(objectClass=gosaUserTemplate))(|$GENERIC$POSIX$MAIL$SAMBA)(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
- <attribute>dn</attribute>
- <attribute>objectClass</attribute>
- <attribute>givenName</attribute>
- <attribute>sn</attribute>
- <attribute>uid</attribute>
- <attribute>modifyTimestamp</attribute>
- <attribute>userPassword</attribute>
+ <filter>(&(objectClass=gosaAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
</query>
</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>
<query>
<backend>LDAP</backend>
- <filter>(&$TEMPLATE(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
- <attribute>dn</attribute>
- <attribute>objectClass</attribute>
- <attribute>givenName</attribute>
- <attribute>sn</attribute>
- <attribute>uid</attribute>
- <attribute>modifyTimestamp</attribute>
- <attribute>userPassword</attribute>
+ <filter>(&(objectClass=gosaUserTemplate)(|(cn=$)(sn=$)(uid=$)))</filter>
</query>
</query>
- <scope>auto</scope>
+ <autocomplete>
+ <attribute>mail</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
</search>
</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>
+ <search>
+ <tag>posix</tag>
+ <label>Show POSIX users</label>
+ <query>
<backend>LDAP</backend>
<backend>LDAP</backend>
- <filter>(&(objectClass=gosaAccount)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)))</filter>
+ <filter>(&(objectClass=gosaAccount)(objectClass=posixAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
+ </query>
+ <autocomplete>
<attribute>cn</attribute>
<frequency>0.5</frequency>
<characters>3</characters>
</autocomplete>
<attribute>cn</attribute>
<frequency>0.5</frequency>
<characters>3</characters>
</autocomplete>
- </element>
-
- <element>
- <type>checkbox</type>
- <tag>TEMPLATE</tag>
- <default></default>
- <unset>(&(!(objectClass=gosaUserTemplate)(!(objectClass=gosaAccount))))</unset>
- <set>(objectClass=gosaUserTemplate)</set>
- </element>
-
- <element>
- <type>checkbox</type>
- <tag>GENERIC</tag>
- <default>true</default>
- <unset></unset>
- <set>(&(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>
+ </search>
- <element>
- <type>checkbox</type>
- <tag>MAIL</tag>
- <default>true</default>
- <unset></unset>
- <set>(objectClass=gosaMailAccount)</set>
- </element>
+ <search>
+ <tag>samba</tag>
+ <label>Show SAMBA users</label>
+ <query>
+ <backend>LDAP</backend>
+ <filter>(&(objectClass=gosaAccount)(objectClass=sambaSamAccount)(|(cn=$)(sn=$)(uid=$)))</filter>
+ </query>
+ <autocomplete>
+ <attribute>cn</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
+ </search>
- <element>
- <type>checkbox</type>
- <tag>SAMBA</tag>
- <default>true</default>
- <unset></unset>
- <set>(objectClass=sambaSamAccount)</set>
- </element>
+ <search>
+ <tag>mail</tag>
+ <label>Show mail users</label>
+ <query>
+ <backend>LDAP</backend>
+ <filter>(&(objectClass=gosaAccount)(objectClass=gosaMailAccount)(|(cn=$)(sn=$)(uid=$)(mail=$)))</filter>
+ </query>
+ <autocomplete>
+ <attribute>mail</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
+ </search>
</filterdef>
</filterdef>