Re: [Exim] Bad LDAP Lookup?

Página Inicial
Delete this message
Reply to this message
Autor: Barry Pederson
Data:  
Para: Jeffrey C. Ollie
CC: exim-users
Assunto: Re: [Exim] Bad LDAP Lookup?
"Jeffrey C. Ollie" wrote:
>
> I've been having intermittent problems with LDAP lookups it seems.
>
> This only seems to happen when there are two or more user objects with
> the same common name in the NDS tree and not all of the objects have a
> "mail" attribute.
>
> Here's the relevant director:
>
> dmacc_lookup:
> driver = aliasfile
> domains = dmacc.cc.ia.us : dmacc.org
> search_type = ldapm
> query = "ldap://an01a.dmacc.cc.ia.us/o=DMACC?mail?sub?(&(objectClass=User)(cn=${quote_ldap:${local_part}}))"
> forbid_file
> forbid_pipe
> no_more


As a workaround, have you tried altering your query to only include records
that -DO- have a mail attribute? Something like:

(&(objectClass=User)(mail=*)(cn=${quote_ldap:${local_part}}))

------

It sounds like your Exim is linked to OpenLDAP 2.0.7, I'm assuming your tests
with "ldapsearch" were also using the OpenLDAP 2.0.7 code?

    Barry