[Dovecot] trouble to start dovecot when ldap enabled

jean-Noël Chardron Jean-Noel.Chardron at dr15.cnrs.fr
Wed Jun 17 11:24:09 EEST 2009


Hello

I need help

on a fedora release 11 (Leonidas) when I start the dovecot process I get 
an error  :

Jun 17 10:15:24 aragon dovecot: Dovecot v1.2.rc3 starting up (core dumps 
disabled)
Jun 17 10:15:24 aragon dovecot: Fatal: auth(default): Support not 
compiled in for passdb driver 'ldap'
Jun 17 10:15:24 aragon dovecot: Fatal: Auth process died too early - 
shutting down

I installed :
Paquetages installés
dovecot.x86_64                         1:1.2-0.rc3.1.fc11              
installed
dovecot-ldap.x86_64                    1:1.2-0.rc3.1.fc11              
installed

# dovecot --version
1.2.rc3

# dovecot -n
# 1.2.rc3: /etc/dovecot.conf
# OS: Linux 2.6.29.4-167.fc11.x86_64 x86_64 Fedora release 11 (Leonidas) 
ext3
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_uid: vmail
mail_gid: vmail
mail_location: maildir:/home/vmail/%u/
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): autocreate
mail_plugins(imap): autocreate
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
  passdb:
    driver: passwd-file
    args: /etc/passwd
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: uid=vmail gid=vmail
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
      group: vmail
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

# cat /etc/dovecot-ldap.conf
#
hosts = localhost
base = dc=ad,dc=dr15,dc=cnrs,dc=fr
ldap_version = 3
auth_bind = yes
scope = subtree
#
user_attrs =   uid=home=/home/vmail/%L$, =gid=vmail,=uid=vmail
user_filter = (&(objectclass=person)(|(mail=%u)(uid=%u)))

pass_attrs = uid=user
pass_filter = (&(objectclass=person)(uid=%u))

user_global_uid = dovecot
user_global_gid = mail


if I launch strace :
#strace -f dovecot -F
[...]
[pid 12796] open("/usr/lib64/dovecot/auth/libauthdb_ldap.so", O_RDONLY) = 6
[...]
[pid 12796] open("/usr/lib64/libldap-2.4.so.2", O_RDONLY) = 6
[...]

-- 
Jean-Noel Chardron





More information about the dovecot mailing list