[Dovecot] LDAP
Wojtek Bogusz
Wojtek at FrontLineDefenders.org
Sat Mar 15 18:32:46 EET 2008
hi. i am trying to setup dovecot imap server with users in LDAP. but i
get "Internal login failure". can you help please? it is probably
something obvious. thank you. Wojtek
i am using version 1.0.rc17
# /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imaps imap
ssl_cert_file: /etc/apache2/ssl/server.pem
ssl_key_file: /etc/apache2/ssl/server.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /usr/lib/dovecot/imap-login
login_greeting_capability: yes
mail_extra_groups: mail
mail_location: maildir:/home/MAIL/%u
imap_client_workarounds: tb-extra-mailbox-sep
auth default:
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
# /etc/dovecot/dovecot-ldap.conf
hosts = localhost
dn = uid=root,ou=Users,dc=frontline
dnpass = [user root plain text password here]
auth_bind = yes
auth_bind_userdn = uid=%u,ou=Users,dc=frontline
ldap_version = 3
base = ou=Users,dc=frontline
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = MD5
user_global_uid = dovecot
user_global_gid = dovecot
in logfile i got this when i try to login:
# /var/log/mail.info
Mar 15 16:13:25 base dovecot: auth(default): client in:
AUTH^I1^IPLAIN^Iservice=IMAP^Ilip=192.168.0.202^Irip=192.168.0.200
Mar 15 16:13:25 base dovecot: auth(default): client out: CONT^I1^I
Mar 15 16:13:25 base dovecot: auth(default): client in:
CONT^I1^IAHdvanRlawBiZWR6aWUgZG9icnpl
Mar 15 16:13:25 base dovecot: auth(default): ldap(wojtek,192.168.0.200):
bind: dn=uid=wojtek,ou=Users,dc=frontline
Mar 15 16:13:25 base dovecot: auth(default): client out: OK^I1^Iuser=wojtek
Mar 15 16:13:25 base dovecot: auth(default): master in: REQUEST^I1^I24908^I1
Mar 15 16:13:25 base dovecot: auth(default): ldap(wojtek,192.168.0.200):
user search: base=ou=Users,dc=frontline scope=subtree
filter=(&(objectClass=*)(u
id=wojtek)) fields=homeDirectory,uidNumber
Mar 15 16:13:25 base dovecot: auth(default): ldap(wojtek,192.168.0.200):
Authenticated user not found
Mar 15 16:13:25 base dovecot: auth(default):
userdb(wojtek,192.168.0.200): user not found from userdb
Mar 15 16:13:25 base dovecot: auth(default): master out: NOTFOUND^I1
Mar 15 16:13:25 base dovecot: imap-login: Internal login failure:
user=<wojtek>, method=PLAIN, rip=192.168.0.200, lip=192.168.0.202
More information about the dovecot
mailing list