[exim-dev] [Bug 882] New: LDAP lookup not working with OpenL…

Top Page
Delete this message
Reply to this message
Author: Andreas Pflug
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 882] New: LDAP lookup not working with OpenLdap 2.4
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=882
           Summary: LDAP lookup not working with OpenLdap 2.4
           Product: Exim
           Version: 4.69
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Lookups
        AssignedTo: nigel@???
        ReportedBy: pgadmin@???
                CC: exim-dev@???



I've set up Exim 4.69 from source on Debian Stable, and found that the
following router wouldn't run any more, as it did on an old system with
exim4.44 and openldap2.2:

data = ${lookup ldapm { ldap:///dc=pse-consulting,dc=de \
         ?uid?sub? \
         ( & (mail=${quote_ldap:$local_part@$domain} ) \
             (objecClass=posixAccount) \
         )  {${lc:$value}@$domain} fail }


I get "ldap_search failed: -7, Bad search filter". The LDAP server debugging
doesn't show any difference between old and new system until exim aborts the
query.

I found that this is caused by linking against openldap 2.4 libraries; when
using the old 2.2 libraries the lookup will resolve fine.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email