From fc8b126d953a38a747a4c821d5fd3246066ec627 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 30 Apr 2012 10:46:41 +0200 Subject: Amending Dovecot-LDAP configuration. --- fripost-docs.org | 20 ++++++-------------- 1 file 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 -- cgit v1.2.3