1# ldap filter file
2#
3# lines like this that start with # or empty lines are ignored
4#
5# syntax:
6#
7# <tag>
8#   <pattern1>	<delimiters>	<filter1-1>	<desc1-1>	[<scope>]
9# 		   		<filter1-2>	<desc1-2>	[<scope>]
10#
11#   <pattern2>	<delimiters>	<filter2-1>	<desc2-1>	[<scope>] ...
12#
13# The "desc" should describe the filter and it should correctly complete
14# both of the following phrases:
15#
16#	One <desc> match was found for...
17#	Three <desc> matches were found for...
18#
19# The scope is optional, and should be one of:
20#	"base"
21#	"onelevel"
22#	"subtree"
23# if it is included.
24#
25
26"finger and ud and go500 and go500gw subtree and web500gw subtree and rp500 and rcpt500 and ufn last"
27    "="		" "	"%v"				"arbitrary filter"
28
29    "^[0-9][0-9-]*$"	" "	"(telephoneNumber=*%v)"	"phone number"
30
31    "@"		" "	"(mail=%v)"			"email address"
32			"(mail=%v*)"			"start of email address"
33
34    "^.[. _].*"	". _"	"(cn=%v1* %v2-)"		"first initial"
35
36    ".*[. _].$"	". _"	"(cn=%v1-*)"			"last initial"
37
38    "[. _]"	". _"	"(|(sn=%v1-)(cn=%v1-))"		"exact"
39			"(|(sn~=%v1-)(cn~=%v1-))"	"approximate"
40
41    ".*"	". "	"(|(cn=%v1)(sn=%v1)(uid=%v1))"	"exact"
42			"(|(cn~=%v1)(sn~=%v1))"		"approximate"
43
44"go500gw onelevel and web500gw onelevel and ufn first and ufn intermediate"
45    "="		" "	"%v"				"arbitrary filter"
46
47    "^..$"	" "	"(|(o=%v)(c=%v)(l=%v)(co=%v))"		"exact"
48    			"(|(o~=%v)(c~=%v)(l~=%v)(co~=%v))"	"approximate"
49
50    " "		" "	"(|(o=%v)(l=%v)(co=%v)(ou=%v))"		"exact"
51    			"(|(o~=%v)(l~=%v)(co~=%v)(ou~=%v))"	"approximate"
52
53    "\."	" "	"(associatedDomain=%v)"			"exact"
54
55    ".*"	" "	"(|(o=%v)(l=%v)(co=%v)(ou=%v))"		"exact"
56    			"(|(o~=%v)(l~=%v)(co~=%v)(ou~=%v))"	"approximate"
57
58
59#
60# xax500
61#
62
63"xax500"
64    "="			" "	"(%v)"			"arbitrary filter"
65
66    "^[0-9][0-9-]*$"	" "	"(telephoneNumber=*%v)"	"phone number"
67
68    "@"			" "	"(mail=%v)"		"email address"
69				"(mail=%v*)"		"start of email address"
70
71    "^.[. _].*"		". _"	"(cn=%v1* %v2-)"	"first initial"
72
73    ".*[. _].$"		". _"	"(cn=%v1-*)"		"last initial"
74
75    "[. _]"		". _"	"(|(sn=%v1-)(cn=%v1-))"		"exact"
76				"(|(sn~=%v1-)(cn~=%v1-))"	"approximate"
77
78    ".*"		". "	"(|(cn=%v1)(sn=%v1)(uid=%v1))"	"exact"
79			"(|(cn=%v1)(sn~=%v1))"			"approximate"
80
81
82"xax500-auth"
83    "="			" "	"(%v)"			"arbitrary filter"
84
85    "^[0-9][0-9-]*$"	" "	"(telephoneNumber=*%v)"	"phone number"
86
87    "@"			" "	"(mail=%v)"		"email address"
88				"(mail=%v*)"		"start of email address"
89
90    "^.[. _].*"		". _"	"(cn=%v1* %v2-)"	"first initial"
91
92    ".*[. _].$"		". _"	"(cn=%v1-*)"		"last initial"
93
94    "[. _]"		". _"	"(|(sn=%v1-)(cn=%v1-))"	"exact"
95			"(|(sn~=%v1-)(cn~=%v1-))"	"approximate"
96
97    ".*"		". "	"(|(cn=%v1)(sn=%v1)(uid=%v1))"	"exact"
98			"(|(cn=%v1)(sn~=%v1))"			"approximate"
99
100"list500"
101    "[. _]"	". _"	"(|(sn=%v1-)(cn=%v1-))"		"exact"
102			"(|(sn~=%v1-)(cn~=%v1-))"	"approximate"
103
104    ".*"	". "	"(|(cn=%v1)(sn=%v1)(uid=%v1))"	"exact"
105			"(|(cn~=%v1)(sn~=%v1))"		"approximate"
106