Dovecot authentication against active directory
Tobias Dummert
tobias.dummert at schmetterling.de
Mon Jun 23 08:43:01 UTC 2014
Hello,
i´ve got a problem with the dovecot authentication against active directory.
I´m using dovecot 2.0.19 and windows server 2008 R2.
When I try to login via telnet I get the following error message:
a NO [AUTHENTICATIONFAILED] Authentication failed.
My dovecot configuration:
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-60-generic x86_64 Ubuntu 12.04.4 LTS ext4
auth_mechanisms = plain login
auth_username_format = %Lu
disable_plaintext_auth = no
first_valid_gid = 1001
first_valid_uid = 1001
last_valid_gid = 1001
last_valid_uid = 1001
log_path = /var/log/dovecot.log
mail_location = maildir:/srv/mail/%u
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
protocols = imap
ssl = no
syslog_facility = local7
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
valid_chroot_dirs = /srv/mail
My dovecot-ldap.conf:
hosts = **************
dn = CN=*****,OU=*****,OU=*****,OU=*****,DC=******,DC=*****,DC=de
dnpass = ****************
tls = no
debug_level = -1
ldap_version = 2
base = OU=*****,DC=*****,DC=*****,DC=de
deref = never
scope = subtree
user_attrs = sAMAccountName=home
user_filter = (&(ObjectClass=user)(|(mail=%u)(sAMAccountName=%u)))
pass_filter = (&(ObjectClass=user)(sAMAccountName=%u))
default_pass_scheme = plain
could anybody help me with this problem?
Thanks in advance!
Regards,
Tobias Dummert
More information about the dovecot
mailing list