<div dir="ltr">Oh sorry, it doesn't say "no mapping found" it says "<span style="font-family:arial,sans-serif;font-size:13px">Backend initialization failure: Can't contact LDAP server" as per the log file section of my previous mail.</span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 8:44 AM, Jason Johnson <span dir="ltr"><<a href="mailto:jason.johnson.081@gmail.com" target="_blank">jason.johnson.081@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I described the log message from openldap because DSPAM doesn't produce one.  It simply comes back with "no mapping found" as seen below.<div>
<br></div><div>extlookup.conf:</div><div>
<br></div><div><div>ExtLookup<span style="white-space:pre-wrap">                                </span>on</div><div>ExtLookupMode<span style="white-space:pre-wrap">                        </span>strict</div><div>ExtLookupDriver<span style="white-space:pre-wrap">                        </span>ldap</div>

<div>ExtLookupServer<span style="white-space:pre-wrap">                       </span>localhost</div><div>ExtLookupPort<span style="white-space:pre-wrap">                          </span>636</div><div>ExtLookupDB<span style="white-space:pre-wrap">                           </span>"ou=people,dc=home,dc=lan"</div>

<div>ExtLookupQuery<span style="white-space:pre-wrap">                       </span>"(&(objectClass=posixAccount)(uid=%u))"</div><div>ExtLookupLDAPAttribute<span style="white-space:pre-wrap">           </span>"uid"</div>

<div>ExtLookupLDAPScope<span style="white-space:pre-wrap">              </span>sub</div><div>ExtLookupLDAPVersion<span style="white-space:pre-wrap">            </span>3</div><div>ExtLookupLogin<span style="white-space:pre-wrap">                        </span>"cn=dspamadm,ou=administrators,dc=home,dc=lan"</div>

<div>ExtLookupPassword<span style="white-space:pre-wrap">                 </span>"myPassword"</div><div>ExtLookupCryptox<span style="white-space:pre-wrap">                     </span>tls</div><div><br></div><div>
log files:</div>
<div><br></div><div><div>==> /var/log/debug <==</div><div>Dec 13 11:53:30 myserver slapd[2030]: conn=1000 fd=11 ACCEPT from IP=<a href="http://127.0.0.1:56251" target="_blank">127.0.0.1:56251</a> (IP=<a href="http://0.0.0.0:636" target="_blank">0.0.0.0:636</a>)</div>

<div><br></div><div>==> /var/log/syslog <==</div><div>Dec 13 11:53:30 myserver slapd[2030]: conn=1000 fd=11 closed (TLS negotiation failure)</div><div>Dec 13 11:53:30 myserver dspam[1977]: External Lookup: Backend initialization failure: Can't contact LDAP server</div>

<div><br></div><div>command line:</div><div><br></div><div><div>root@myserver:/etc/dspam# ldapsearch -b 'ou=people,dc=home,dc=lan' -x -H ldaps://localhost -W -D "cn= dspamadm,ou=administrators,dc=home,dc=lan"  "(&(objectClass=posixAccount)(uid=jason))" uid</div>

<div>Enter LDAP Password:</div><div># extended LDIF</div><div>#</div><div># LDAPv3</div><div># base <ou=people,dc=home,dc=lan> with scope subtree</div><div># filter: (&(objectClass=posixAccount)(uid=jason))</div>

<div># requesting: uid </div><div>#</div><div><br></div><div># jason, people, home.lan</div><div>dn: uid=jason,ou=people,dc=home,dc=lan</div><div>uid: jason</div><div><br></div><div># search result</div><div>search: 2</div>

<div>result: 0 Success</div><div><br></div><div># numResponses: 2</div><div># numEntries: 1</div><div><br></div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Jason</div></font></span></div>
</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 4:21 PM, Thomas Preud'homme <span dir="ltr"><<a href="mailto:robotux@debian.org" target="_blank">robotux@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le mardi 22 janvier 2013 22:19:30, vous avez écrit :<br>
> Package: dspam<br>
> Version: 3.10.2+dfsg-5<br>
><br>
> I am trying to use the LDAP external user verification mechanism for<br>
> DSPAM but the connection fails with a "negotiation failure".  I am<br>
> able to use the same DM and password via the command line LDAP tools,<br>
> but DSPAM itself will not connect.  I have the certificate information<br>
> in the system wide ldap.conf file so DSPAM should be able to see it.<br>
><br>
><br>
> I am using the latest Debian stable and DSPAM via the backports repository.<br>
<br>
The "TLS negotiation failure" message comes from openldap, not dspam. Could<br>
you attach the relevant configuration file (extlookup.conf) and the command line<br>
you used outside dspam.<br>
<br>
Best regards,<br>
<br>
Thomas Preud'homme<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>