Code

f20b928afd73ad9d76af1bb480f48de02c466731
[gosa.git] / gosa-core / plugins / admin / users / user-filter.xml
1 <?xml version="1.0" encoding="UTF-8"?>
3 <filter>
4   <definition>
5     <target>users</target>
6     <template>user-filter.tpl</template>
7     <initial>true</initial>
8   </definition>
10   <search>
11     <query>
12       <backend>LDAP</backend>
13       <filter>(&amp;(!(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>cn</attribute>
17       <attribute>mail</attribute>
18       <attribute>uid</attribute>
19       <attribute>modifyTimestamp</attribute>
20     </query>
21     <query>
22       <backend>LDAP</backend>
23       <filter>(&amp;$TEMPLATE(|(cn=$NAME)(sn=$NAME)(givenName=$NAME)(uid=$NAME)))</filter>
24       <attribute>dn</attribute>
25       <attribute>objectClass</attribute>
26       <attribute>cn</attribute>
27       <attribute>mail</attribute>
28       <attribute>uid</attribute>
29       <attribute>modifyTimestamp</attribute>
30     </query>
31     <base>false</base>
32     <scope>auto</scope>
33   </search>
35   <element>
36     <type>textfield</type>
37     <tag>NAME</tag>
38     <!--<regex>^...</regex>-->
39     <alphabet>true</alphabet>
40     <default>*</default>
41     <unset>this is a not valid and failing filter</unset>
42     <set>$</set>
43     <autocomplete>
44       <backend>LDAP</backend>
45       <filter>(&amp;(objectClass=gosaAccount)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)))</filter>
46       <attribute>cn</attribute>
47       <frequency>0.5</frequency>
48       <characters>3</characters>
49     </autocomplete>
50   </element>
52   <element>
53     <type>checkbox</type>
54     <tag>TEMPLATE</tag>
55     <default></default>
56     <unset>(&amp;(!(objectClass=gosaUserTemplate)(!(objectClass=gosaAccount))))</unset>
57     <set>(objectClass=gosaUserTemplate)</set>
58   </element>
60   <element>
61     <type>checkbox</type>
62     <tag>GENERIC</tag>
63     <default>true</default>
64     <unset></unset>
65     <set>(&amp;(objectClass=gosaAccount)(!(|(objectClass=posixAccount)(objectClass=gosaMailAccount)(objectClass=sambaSamAccount)(objectClass=gosaProxyAccount))))</set>
66   </element>
68   <element>
69     <type>checkbox</type>
70     <tag>POSIX</tag>
71     <default>true</default>
72     <unset></unset>
73     <set>(objectClass=posixAccount)</set>
74   </element>
76   <element>
77     <type>checkbox</type>
78     <tag>MAIL</tag>
79     <default>true</default>
80     <unset></unset>
81     <set>(objectClass=gosaMailAccount)</set>
82   </element>
84   <element>
85     <type>checkbox</type>
86     <tag>SAMBA</tag>
87     <default>true</default>
88     <unset></unset>
89     <set>(objectClass=sambaSamAccount)</set>
90   </element>
92   <element>
93     <type>combobox</type>
94     <tag>ROLLE</tag>
95     <unset></unset>
96     <set></set>
97     <default>*</default>
98     <value>
99       <key>*</key>
100       <set>All</set>
101       <set xml:lang="de">Alle</set>
102     </value>
103     <autocomplete>
104       <backend>LDAP</backend>
105       <base>dc=gonicus,dc=de</base>
106       <scope>sub</scope>
107       <category>roles</category>
108       <objectbase>ou=roles</objectbase>
109       <filter>(objectClass=organizationalRole)</filter>
110       <attribute>cn</attribute>
111       <key>cn</key>
112     </autocomplete>
113    </element>
115 </filter>