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