[Dovecot] Upgraded and authentication fails with LDAP

Ren Galskap ren_galskap at yahoo.com
Fri Jan 14 02:23:09 EET 2005


FreeBSD 5.2.1
Upgraded to dovecot 0.99.12.1
After authentication failed, I also upgraded OpenLDAP
to 2.2.19
Dovecot and OpenLDAP are now the most recent versions
in the ports.

I can access the LDAP info through the OpenLDAP client
without a problem, so slapd seems to be working fine.

Both dovecot and OpenLDAP worked fine before the
upgrade. Any help will be appreciated, since several
people would like to have their e-mail back soon.

maillog
Jan 13 18:51:02 kongemord imap-login: Internal login
failure: rjhjr [127.0.0.1]
Jan 13 18:51:02 kongemord dovecot: child 1320 (auth)
killed with signal 6 

messages
Jan 13 18:51:02 kongemord kernel: pid 1320
(dovecot-auth), uid 1006: exited on signal 6

debug.log
Jan 13 18:51:02 kongemord slapd[1103]: conn=14 op=1
SRCH base="ou=imap,dc=krig,dc=net" scope=2 deref=0
filter="(&(objectClass=posixAccount)(uid=rjhjr))"
Jan 13 18:51:02 kongemord slapd[1103]: conn=14 op=1
SRCH attr=uid userPassword
Jan 13 18:51:02 kongemord slapd[1103]: conn=14 op=1
SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 13 18:51:02 kongemord slapd[1103]: conn=14 fd=12
closed
Jan 13 18:51:03 kongemord slapd[1103]: conn=15 fd=12
ACCEPT from IP=127.0.0.1:54 185 (IP=0.0.0.0:389)
Jan 13 18:51:03 kongemord slapd[1103]: conn=15 op=0
BIND dn="cn=dovecot,ou=imap,dc=krig,dc=net" method=128
Jan 13 18:51:03 kongemord slapd[1103]: conn=15 op=0
BIND dn="cn=dovecot,ou=imap,dc=krig,dc=net"
mech=SIMPLE ssf=0
Jan 13 18:51:03 kongemord slapd[1103]: conn=15 op=0
RESULT tag=97 err=0 text=

dovecot-ldap.conf
hosts = localhost
dn = cn=dovecot,ou=imap,dc=krig,dc=net
dnpass = <cleartext>
ldap_version = 3
base = ou=imap, dc=krig, dc=net
deref = never
scope = subtree
user_attrs = uid,homeDirectory,,,uidNumber,gidNumber
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid,userPassword
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = CRYPT
user_global_uid = 1003
user_global_gid = 6

dovecot.conf
base_dir = /var/run/dovecot/
protocols = imap
imap_listen = *
ssl_disable = yes
login_chroot = yes
login = imap
login_executable =
/usr/local/libexec/dovecot/imap-login
login_user = dovecot
verbose_proctitle = yes
first_valid_uid = 1003
last_valid_uid = 1003
first_valid_gid = 6
last_valid_gid = 6
valid_chroot_dirs = /var/mail
default_mail_env = maildir:/var/mail/%u/Maildir
client_workarounds = oe6-fetch-no-newmail outlook-idle
outlook-pop3-no-nuls
mail_save_crlf = yes
maildir_copy_with_hardlinks = yes
imap_executable = /usr/local/libexec/dovecot/imap
auth = default
auth_mechanisms = plain
auth_userdb = ldap /usr/local/etc/dovecot-ldap.conf
auth_passdb = ldap /usr/local/etc/dovecot-ldap.conf
auth_executable =
/usr/local/libexec/dovecot/dovecot-auth
auth_user = dovecot-auth
auth_verbose = yes

I had the following flags in the Makefile prior to
make: --without-shadow --localstatedir=/var --with-ldap


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250



More information about the dovecot mailing list