eb9d83f3d11d44938e01c265ff106f9459d5bea0
1 <?xml version="1.0" encoding="UTF-8"?>
3 <filterdef>
4 <definition>
5 <category>users</category>
6 <template>user-filter.tpl</template>
7 <initial>true</initial>
8 </definition>
10 <search>
11 <query>
12 <backend>LDAP</backend>
13 <filter>(&(!(objectClass=gosaUserTemplate))(|$GENERIC$POSIX$MAIL$SAMBA)(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
14 <attribute>dn</attribute>
15 <attribute>objectClass</attribute>
16 <attribute>givenName</attribute>
17 <attribute>sn</attribute>
18 <attribute>uid</attribute>
19 <attribute>modifyTimestamp</attribute>
20 <attribute>userPassword</attribute>
21 </query>
22 <query>
23 <backend>LDAP</backend>
24 <filter>(&$TEMPLATE(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
25 <attribute>dn</attribute>
26 <attribute>objectClass</attribute>
27 <attribute>givenName</attribute>
28 <attribute>sn</attribute>
29 <attribute>uid</attribute>
30 <attribute>modifyTimestamp</attribute>
31 <attribute>userPassword</attribute>
32 </query>
33 <scope>auto</scope>
34 </search>
36 <element>
37 <type>textfield</type>
38 <tag>NAME</tag>
39 <!--<regex>^...</regex>-->
40 <alphabet>true</alphabet>
41 <default>*</default>
42 <unset>this is a not valid and failing filter</unset>
43 <set>$</set>
44 <autocomplete>
45 <backend>LDAP</backend>
46 <filter>(&(objectClass=gosaAccount)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)))</filter>
47 <attribute>cn</attribute>
48 <frequency>0.5</frequency>
49 <characters>3</characters>
50 </autocomplete>
51 </element>
53 <element>
54 <type>checkbox</type>
55 <tag>TEMPLATE</tag>
56 <default></default>
57 <unset>(&(!(objectClass=gosaUserTemplate)(!(objectClass=gosaAccount))))</unset>
58 <set>(objectClass=gosaUserTemplate)</set>
59 </element>
61 <element>
62 <type>checkbox</type>
63 <tag>GENERIC</tag>
64 <default>true</default>
65 <unset></unset>
66 <set>(&(objectClass=gosaAccount)(!(|(objectClass=posixAccount)(objectClass=gosaMailAccount)(objectClass=sambaSamAccount)(objectClass=gosaProxyAccount))))</set>
67 </element>
69 <element>
70 <type>checkbox</type>
71 <tag>POSIX</tag>
72 <default>true</default>
73 <unset></unset>
74 <set>(objectClass=posixAccount)</set>
75 </element>
77 <element>
78 <type>checkbox</type>
79 <tag>MAIL</tag>
80 <default>true</default>
81 <unset></unset>
82 <set>(objectClass=gosaMailAccount)</set>
83 </element>
85 <element>
86 <type>checkbox</type>
87 <tag>SAMBA</tag>
88 <default>true</default>
89 <unset></unset>
90 <set>(objectClass=sambaSamAccount)</set>
91 </element>
93 </filterdef>