Re: [Exim] LDAP Lookups + Exim4

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: John Horne
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] LDAP Lookups + Exim4
On 15-Aug-2002 at 16:20:11 Joseph Kezar wrote:
> I am currently undergoing a migration from Exim 3 to 4.
> I compiled Exim4 with the OpenLDAP2 libraries without a hitch. Now I am
> trying to convert my configuration file.
> Apparently this Router is not syntatically correct:
> external_ldap_aliases:
> driver = redirect
> search_type = ldapm
> query = ldap://ldap.doc.state.vt.us/ou=Groups,o=Vermont Department of
> Corrections,c=US?rfc822MailMember?sub?(cn=${local_part})
> file_transport = address_file
> pipe_transport = address_pipe
> unseen
>

I don't use ldap myself, but the query and search_type options are exim3 not
exim4. Try using something like:

  external_ldap_aliases:
    driver = redirect
    search_type = ldapm
    data = ${lookup ldapm \
     {ldap://ldap.doc.state.vt.us/ou=Groups,o=Vermont Department of
Corrections,c=US?rfc822MailMember?sub?(cn=${local_part})}}
    file_transport = address_file
    pipe_transport = address_pipe
    unseen


See the exim4.10 manual page 59 - there is an example there.


Regards,

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers