|
1 |
| -# Find any vhost with a name or alias matching the domain of the e-mail |
2 |
| -# address. We're queried with an entire e-mail address, but are only |
3 |
| -# interested in checking whether the domain portion corresponds to a |
4 |
| -# vhost; we'll simply deliver any mail for the vhost to its owner, regardless |
5 |
| -# of the lefthand side of the address. %d extracts only the domain. |
6 |
| -# We don't match the scripts.mit.edu vhost here because we don't want |
7 |
| -# to first resolve an arbitrary address to a scripts account, and then |
8 |
| -# end up sending their mail to the owners of the scripts.mit.edu vhost. |
9 |
| -# Once we've found the scriptsVhost object corresponding to the domain |
10 |
| -# the e-mail is for, we recursively search the suffix for the vhost's |
11 |
| -# scriptsVhostAccount, and take the uid from that object. This uid is |
12 |
| -# the name of the locker that owns the vhost. Protocol version 3 is |
| 1 | +# Find any vhost with a name or alias matching the domain of the |
| 2 | +# e-mail address. We're queried with an entire e-mail address, but |
| 3 | +# are only interested in checking whether the domain portion |
| 4 | +# corresponds to a vhost; we'll simply deliver any mail for the vhost |
| 5 | +# to its owner, appending the original lefthand side of the address as |
| 6 | +# an extension. %d extracts only the domain. We don't match the |
| 7 | +# scripts.mit.edu vhost here because we don't want to first resolve an |
| 8 | +# arbitrary address to a scripts account, and then end up sending |
| 9 | +# their mail to the owners of the scripts.mit.edu vhost. The uid |
| 10 | +# attribute, generated by the CoS template |
| 11 | +# cn=vhostOwnerCoS,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu, is the |
| 12 | +# name of the locker that owns the vhost. Protocol version 3 is |
13 | 13 | # necessary to use ldapi.
|
14 | 14 |
|
15 | 15 | server_host = ldapi://%2fvar%2frun%2fslapd-scripts.socket/
|
16 | 16 | search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu
|
17 | 17 | query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%d)(scriptsVhostAlias=%d))(!(scriptsVhostName=scripts.mit.edu)))
|
18 | 18 | result_attribute = uid
|
19 |
| -special_result_attribute = scriptsVhostAccount |
| 19 | +result_format = %s+%U |
20 | 20 | bind = no
|
21 | 21 | version = 3
|
22 | 22 |
|
0 commit comments