diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-30 10:46:41 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-30 10:46:41 +0200 |
commit | fc8b126d953a38a747a4c821d5fd3246066ec627 (patch) | |
tree | 85eae116a3c70988224073bb7d2534367ffa9ad1 | |
parent | da522a6e3c76d88bdc8b027106d571664825876c (diff) |
Amending Dovecot-LDAP configuration.
-rw-r--r-- | fripost-docs.org | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/fripost-docs.org b/fripost-docs.org index ce7ebb7..aa1abb3 100644 --- a/fripost-docs.org +++ b/fripost-docs.org @@ -1382,21 +1382,13 @@ Copy this file in /etc/dovecot, and chmod 600 it. Uncomment the following lines: hosts = localhost # Or wherever is our LDAP server ldap_version = 3 auth_bind = yes - auth_bind_userdn = uid=%u,ou=mailboxes,o=mailHosting,dc=fripost,dc=org - base = ou=mailboxes,o=mailHosting,dc=fripost,dc=org + auth_bind_userdn = uid=%n,dc=%d,ou=domains,o=mailHosting,dc=fripost,dc=org + base = uid=%n,dc=%d,ou=domains,o=mailHosting,dc=fripost,dc=org deref = never - scope = subtree - user_attrs = maildir=home=/home/mail/virtual/%$ - user_filter = (&(objectClass=virtualMailbox)(uid=%u)(isActive=TRUE)) - pass_attrs = uid=user - pass_filter = (&(objectClass=virtualMailbox)(uid=%u)(isActive=TRUE)) - -(And the TLS-related lines in case we are not using a tunnel.) The "base" is the root -of our tree structure, in our case dn="ou=mailboxes,o=mailHosting,dc=fripost,dc=org". - -[Note: the `user_attrs' and `user_filter' are only relevant if the result of the query is -used in the `dovecot.conf', for instance with mail_location = maildir:~. Otherwise, the -userdb would better be dropped.] + scope = base + pass_filter = (&(objectClass=virtualMailbox)(uid=%n)(isActive=TRUE)) + +(And the TLS-related lines in case we are not using a tunnel.) We can now amend the `dovecot.conf': Comment the "passwd sql {...}" and "userdb sql {...}" blocks, and uncomment |