Dear sirs,<br>
In the configuration of Dovecot I canīt get autentication of the users.<br>
My work environment is:<br>
OpenBSD 3.8<br>
Postfix 2.2.5 (instaled thru ports with ldap and sasl support)<br>
Opendap 2.2.27 (instaled thru ports with sasl support)<br>
Dovecot 0.99.14 (instaled thru source with ldap support)<br>
<br>
I have two domains in ldap, the postfix is just autenticating in ldap
(sending e-mails to users of 2 ldap domains), I have one vmail user and
one vmail group with uid e gid 800 to e-mail delivery and one dovecot
user for dovecot itself.<br>
<br>
The Dovecot is not autenticating:<br>
<span class="q"><br># telnet localhost 143<br> * OK dovecot ready<br> 0 login <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:user@domain.com">user@domain.com</a> password<br> 0 NO Authentication failed.
<br><br></span> ldapīs LOGS:<br>
<font style="font-family: arial,sans-serif;" size="2">Jan 11 13:48:56 ldap slapd[6397]: conn=6 op=4 SRCH
base="cn=dovecot,o=organization,c=com" scope=2 deref=0
filter="(&(objectClass=qmailUser)(mail=<a href="mailto:user@domain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.com</a>))"<br>
Jan 11 13:48:56 ldap slapd[6397]: conn=6 op=4 SRCH attr=uid userPassword<br>
Jan 11 13:48:56 ldap slapd[6397]: conn=6 op=4 SEARCH RESULT tag=101 err=32 nentries=0 text=<br>
<br>
my slapd.conf:<br>
<br>
include         /etc/openldap/schema/core.schema<br>
include         /etc/openldap/schema/cosine.schema<br>
include         /etc/openldap/schema/inetorgperson.schema<br>
include         /etc/openldap/schema/nis.schema<br>
include         /etc/openldap/schema/qmail.schema<br>
include         /etc/openldap/schema/openldap.schema<br>
<br>
pidfile         /var/run/slapd/slapd.pid<br>
argsfile        /var/run/slapd/slapd.args<br>
<br>
access to dn.base=""<br>
        by * read<br>
<br>
access to attr=userPassword<br>
        by dn="uid=vmail,o=organization,c=com" read<br>
        by dn="cn=dovecot,o=organization,c=com" read<br>
        by anonymous auth<br>
        by self write<br>
        by * none<br>
<br>
database        ldbm<br>
checkpoint      1024    5<br>
cachesize       10000<br>
suffix          "o=organization,c=com"<br>
rootdn          "cn=administrator,o=organization,c=com"<br>
<br>
rootpw          {CRYPT}xxxxxxxxxxx<br>
<br>
directory       /var/openldap-data<br>
<br>
index   objectClass     eq<br>
<br>
my user.ldif<br>
<br>
dn: cn=user,ou=<a href="http://domain1.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">domain1.com</a>,o=organization,c=com<br>
cn: user<br>
ou: <a href="http://domain1.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">domain1.com</a><br>
sn: user<br>
objectClass: top<br>
objectClass: person<br>
objectClass: inetOrgPerson<br>
objectClass: posixAccount<br>
objectClass: qmailUser<br>
homeDirectory: /var/vmail/domains/domain1.com/user<br>
mail: <a href="mailto:user@domain1.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain1.com</a><br>
mailHost: <a href="http://mail.domains.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mail.domains.com</a><br>
mailQuotaSize: 0<br>
mailQuotaCount: 0<br>
deliveryMode: normal<br>
uid: user<br>
uidNumber: 2000<br>
gidNumber: 2000<br>
accountStatus: active<br>
userPassword: {CRYPT}xxxxxxxxxxxx<br>
mailMessageStore: <a href="http://domain1.com/user" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">domain1.com/user</a><br>
mailAlternateAddress: <a href="mailto:user@domain1.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain1.com</a><br>
<br>
my dovecot.conf<br>
<br>
</font>
<pre style="font-family: arial,sans-serif;"><font size="2">protocols = imap<br>imap_listen = *:143<br>ssl_disable = yes<br>login_dir = /var/dovecot/login<br>login_executable = /usr/local/libexec/dovecot/imap-login<br><span>
<br></span>login_user = dovecot<br>first_valid_uid = 800<br>last_valid_uid = 800<br>first_valid_gid = 800<br>last_valid_gid = 800<br>valid_chroot_dirs = /var/vmail/domains/<br>default_mail_env = mbox:/var/vmail/domains/%d/%u/Maildir
<br><br>auth = default<br>auth_mechanisms = plain<br>auth_userdb = ldap /etc/dovecot-ldap.conf<br>auth_passdb = ldap /etc/dovecot-ldap.conf<br><br>My dovecot-ldap.conf<br><br>hosts = localhost<br>dn = uid=dovecot,o=organization,c=com
<br><br>dnpass = password<br>ldap_version = 3<br>base = o=organization,c=com<br>deref = never<br>scope = subtree<br>user_attrs = uid,homeDirectory,,uid,uidNumber,gidNumber<br>user_filter = (&(objectClass=qmailUser)(mail=%u))
<br><br>pass_attrs = uid,userPassword<br>pass_filter = (&(objectClass=qmailUser)(mail=%u))<br>default_pass_scheme = CRYPT<br>user_global_uid = 800<br>user_global_gid = 800<span></span></font></pre>

<font style="font-family: arial,sans-serif;" size="2"><br>
[]'s<br>
<br>
</font>