[Dovecot] problems with ldap auth

Igor V Rozinov igorx at iriit.irk.ru
Tue May 10 06:14:34 EEST 2005


I'm trying Dovecot v1.0-stable with ldap authentication but can't seem
to make it work. I'm getting the following errors in the log:

May 10 11:49:07 <mail.info> 172.16.2.22 dovecot: Dovecot v1.0-stable starting up
May 10 11:49:08 <mail.err> 172.16.2.22 dovecot: Auth process died too early - shutting down
May 10 11:49:08 <mail.err> 172.16.2.22 dovecot: child 50167 (auth) killed with signal 11
-----------------------------------
The system is:
  FreeBSD mailhub-mps 5.2.1-RELEASE-p12

Configure options is
 env CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure \
   --disable-ipv6 \
   --enable-debug \
   --with-ldap \
   --with-pop3d \
   --without-pam

Suumary report of Configure script is:
  Install prefix ...................... : /usr/local
  File offsets ........................ : 64bit
  I/O loop method ..................... : poll
  Building with SSL support ........... : yes (OpenSSL)
  Building with IPv6 support .......... : no
  Building with pop3 server ........... : yes
  Building with user database modules . : static passwd passwd-file checkpassword ldap (modules)
  Building with password lookup modules : passwd passwd-file checkpassword ldap (modules)

----------------------
my Configs:
 ++++dovecot.conf+++++
base_dir = /var/run/dovecot
protocols = imap pop3
listen = 172.16.2.22
ssl_disable = yes
login_dir = /var/run/dovecot/login
login_user = dovecot
max_mail_processes = 1024
verbose_proctitle = yes
first_valid_uid = 1000
last_valid_uid = 0
first_valid_gid = 1000
last_valid_gid = 0
mail_max_keyword_length = 50
mbox_lock_timeout = 300
umask = 0077
protocol imap {
  login_executable = /usr/local/libexec/dovecot/imap-login
  mail_executable = /usr/local/libexec/dovecot/rawlog /usr/local/libexec/dovecot/imap
  imap_max_line_length = 65536
}
protocol pop3 {
  login_executable = /usr/local/libexec/dovecot/pop3-login
  mail_executable = /usr/local/libexec/dovecot/pop3
}
auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_process_size = 256
auth_cache_size = 0
auth_cache_ttl = 600
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth_verbose = yes
auth_debug = yes
auth default {
  mechanisms = plain
  passdb = ldap /usr/local/etc/dovecot.ldap
  userdb = ldap /usr/local/etc/dovecot.ldap
  user = igorx
}
---------------------------------
   +++dovecot.ldap+++
hosts = 172.16.2.1
dn = cn=igorx,ou=guvs,o=iriit
dnpass = *******
ldap_version = 3
base = o=iriit
deref = never
scope = subtree
user_attrs = uid,homeDirectory,,,uidNumber,gidNumber
user_filter = (&(objectClass=user)(uid=%u))
pass_attrs = uid,userPassword
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = CRYPT
user_global_uid = 1000
user_global_gid = 1000
----------------------------
Output of "truss -eafo aa dovecot" placed to

http://www.iriit.irk.ru/rvs/aa
  or
http://www.irgups.ru/rvs/aa
------------------------------------
LDAP it is install correctly, works perfectly.
Data reading is made from NOVELL NDS.


-----------------------------------
Best regards,
 Igor                          mailto:igorx at iriit.irk.ru




More information about the dovecot mailing list