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>&nbsp;* OK dovecot ready<br>&nbsp;0 login <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:user@domain.com">user@domain.com</a> password<br>&nbsp;0 NO Authentication failed.
<br><br></span>&nbsp;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=&quot;cn=dovecot,o=organization,c=com&quot; scope=2 deref=0
filter=&quot;(&amp;(objectClass=qmailUser)(mail=<a href="mailto:user@domain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.com</a>))&quot;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/core.schema<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/cosine.schema<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/inetorgperson.schema<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/nis.schema<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/qmail.schema<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openldap/schema/openldap.schema<br>
<br>
pidfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/run/slapd/slapd.pid<br>
argsfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/run/slapd/slapd.args<br>
<br>
access to dn.base=&quot;&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by * read<br>
<br>
access to attr=userPassword<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by dn=&quot;uid=vmail,o=organization,c=com&quot; read<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by dn=&quot;cn=dovecot,o=organization,c=com&quot; read<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by anonymous auth<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by self write<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by * none<br>
<br>
database&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ldbm<br>
checkpoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024&nbsp;&nbsp;&nbsp; 5<br>
cachesize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10000<br>
suffix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;o=organization,c=com&quot;<br>
rootdn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;cn=administrator,o=organization,c=com&quot;<br>
<br>
rootpw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {CRYPT}xxxxxxxxxxx<br>
<br>
directory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/openldap-data<br>
<br>
index&nbsp;&nbsp; objectClass&nbsp;&nbsp;&nbsp;&nbsp; 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 = (&amp;(objectClass=qmailUser)(mail=%u))
<br><br>pass_attrs = uid,userPassword<br>pass_filter = (&amp;(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>