dovecot + ldap

Issues related to applications and software problems
Post Reply
thefantaman
Posts: 5
Joined: 2011/12/20 09:34:53

dovecot + ldap

Post by thefantaman » 2011/12/20 10:52:03

Hello everyone, I'm new to the forum.
I'm putting up a server postfix + dovecot + ldap on centos 6.1 32bit. My current problem is related to the receipt of mail dovecot: When I go by the mail client to access pop3 authentication error with me. Below the file / var / log / dovecot.log
[quote]Dec 19 17:35:17 pop3-login: Info: Disconnected (auth failed, 2 attempts): user=, method=PLAIN, rip=192.0.200.182, lip=192.0.200.166[/quote]

/etc/dovecot.conf
[quote]# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-131.21.1.el6.i686 i686 CentOS release 6.1 (Final)
auth_mechanisms = plain digest-md5
disable_plaintext_auth = no
first_valid_gid = 101
first_valid_uid = 100
last_valid_gid = 101
last_valid_uid = 100
mbox_write_locks = fcntl
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
protocols = imap pop3
service auth {
user = dovecot
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
userdb {
args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
driver = ldap
}
verbose_proctitle = yes
## LOG log_path = /var/log/dovecot
info_log_path = /var/log/dovecot
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail[/quote]

/etc/dovecot/dovecot-ldap.conf.ext

[quote]
# Space separated list of LDAP hosts to use. host:port is allowed too.
hosts = 192.0.200.2

# Distinguished Name - the username used to login to the LDAP server
dn = cn=Manager,dc=dominio,dc=intra

# Password for LDAP server
dnpass = segreta

# LDAP protocol version to use. Likely 2 or 3.
ldap_version = 3

# LDAP base
base = ou=people,dc=dominio,dc=intra

# Dereference: never, searching, finding, always
deref = never

# Search scope: base, onelevel, subtree
scope = subtree

# User attributes in order:
# Virtual user name (user@domain)
# Home directory
# MAIL environment
# System user name (for initgroups())
# System UID
# System GID
#user_attrs = uid,homeDirectory,,uid,uidNumber,gidNumber
##user_attrs = uid,homeDirectory,,uid,,
user_attrs = homeDirectory

# Filter for user lookup. Some variables can be used:
# %u - username
# %n - user part in user@domain, same as %u if there's no domain
# %d - domain part in user@domain, empty if user there's no domain
#user_filter = (&(objectClass=posixAccount)(uid=%n))

# Password checking attributes in order:
# Virtual user name (user@domain)
# Password, may optionally start with {type}, eg. {crypt}
pass_attrs = userPassword

# Filter for password lookups
pass_filter = (&(objectClass=posixAccount)(uid=%u))[/quote]

Who knows how to help me? I do not know English well, I'm helping with Goolge Translate, so you can use simple sentences to answer me? ;-)
Thanks to all!

Post Reply