[Dovecot] 2.0.10 Auth failed while binding ldap
Stéphane Wartel
st.wartel at gmail.com
Sat Mar 5 12:48:35 EET 2011
Dear all,
Since new release has been installed, auth process crash with io loop :
2011-03-05 11:22:44 auth: Panic: file db-ldap.c: line 1113
(db_ldap_result_change_attr): assertion failed: (ctx->vals == NULL)
2011-03-05 11:22:44 auth: Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0 [0xb76ceab1] ->
/usr/lib/dovecot/libdovecot.so.0 [0xb76ceb2f] ->
/usr/lib/dovecot/libdovecot.so.0(i_error+0) [0xb76cee04] ->
dovecot/auth(db_ldap_result_iterate_next+0x3be) [0x806aa8e] ->
dovecot/auth [0x806c857] -> dovecot/auth [0x806cd91] -> dovecot/auth
[0x806c314] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x51)
[0xb76db781] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xe0) [0xb76dc840]
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0xb76db700] ->
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) [0xb76c73da]
-> dovecot/auth(main+0x300) [0x805ea50] ->
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7147455] ->
dovecot/auth [0x8052a51]
2011-03-05 11:22:44 master: Error: service(auth): child 23136 killed
with signal 6 (core dumps disabled)
2011-03-05 11:22:44 master: Error: service(auth): command startup
failed, throttling
dovecot --version
2.0.10 (d757b13d84ff)
# 2.0.10 (d757b13d84ff): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-686 i686 Debian 5.0.8
auth_failure_delay = 5 secs
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot-debug.log
dict/acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
info_log_path = /var/log/dovecot-info.log
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 127.0.0.1
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_access_groups = mail
mail_debug = yes
mail_fsync = always
mail_gid = mail
mail_location = maildir:~/Maildir
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = " quota trash zlib"
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date
mmap_disable = yes
namespace {
inbox = yes
location =
prefix =
separator = .
type = private
}
namespace {
list = children
location = maildir:%%h/Maildir:INDEX=~/Maildir/Shared/%%n
prefix = Shared.%%n.
separator = .
subscriptions = no
type = shared
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin/acl = vfile
plugin/acl_shared_dict = proxy::acl
plugin/autocreate = Junk
plugin/autosubscribe = Junk
plugin/quota = maildir:User quota
plugin/quota_rule2 = Trash:storage=+100M
plugin/quota_warning = storage=95%% quota-warning 95 %u
plugin/quota_warning2 = storage=80%% quota-warning 80 %u
plugin/sieve = ~/.dovecot.sieve
plugin/sieve_before = /etc/dovecot/global_script/dovecot.sieve
plugin/sieve_dir = ~/sieve
plugin/trash = /etc/dovecot/dovecot-trash.conf.ext
plugin/zlib_save = bz2
plugin/zlib_save_level = 6
postmaster_address = postmaster
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth {
unix_listener /var/spool/postfix/private/auth {
group = mail
mode = 0660
user = postfix
}
unix_listener auth-master {
group = mail
mode = 0660
user = vmail
}
unix_listener auth-userdb {
group = mail
mode = 0660
user = vmail
}
}
service dict {
unix_listener dict {
group = mail
mode = 0660
user = vmail
}
}
service imap-login {
process_min_avail = 10
service_count = 1
}
service managesieve-login {
process_min_avail = 3
service_count = 1
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = vmail
}
user = dovecot
}
ssl_ca = </etc/ssl/certs/GandiStandardSSLCA.pem
ssl_cert = </etc/ssl/certs/imap.zero-spam.fr.pem
ssl_key = </etc/ssl/private/imap.zero-spam.fr.key
userdb {
args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
driver = ldap
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = " quota trash zlib sieve autocreate acl"
}
protocol imap {
mail_plugins = " quota trash zlib acl imap_quota imap_acl imap_zlib"
}
protocol sieve {
managesieve_logout_format = bytes=%i/%o
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date
}
dovecot-ldap.conf.ext
hosts = 127.0.0.1
dn = "cn=sup,dc=domain,dc=com"
dnpass = "**********"
auth_bind = yes
ldap_version = 3
base = dc=domain, dc=com
user_attrs = mailbox=home,mailuserquota=quota_rule=*:storage
user_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
iterate_attrs = mail=user
iterate_filter = (&(objectClass=mailAccount)(mailenable=OK))
Hope this could help you !
Many thanks by advance,
Stephane
More information about the dovecot
mailing list