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