Re: [Exim] Problems with exim and LDAP (alias) ...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Barry Pederson
Fecha:  
A: Lars Nixdorf
Cc: exim-users
Asunto: Re: [Exim] Problems with exim and LDAP (alias) ...
Lars Nixdorf wrote:
> hi,
>
> I'm working with exim-3.35 and openldap-2.0.15 on Linux Slackware-8.0.
>
> Exim works for me, but now I want to switch to a LDAP based Exim. It
> compiles fine. In first step I put out the configuration for aliases.
> But it doesn't work. "ldapsearch", "exim -be ..." ... works fine.
>
> Could anybody help, please? I don't know, what is wrong. Thx
>
> My alias configuration:
> ...
> ..
> system_aliases:
>   driver = aliasfile
>   search_type = ldap
>   query = "user=\"cn=Admin1,ou=Administrators,o=Firm\" pass=secret \
>           ldap://my.host.de:389/o=Firm?mail?sub?${local_part}"
>   file_transport = address_file
>   pipe_transport = address_pipe


Not exactly sure what you're trying to lookup (uid?) but that query doesn't
seem right, you're not specifying a real filter (something=somethingelse), it
probably should be more like:

ldap://my.host.de:389/o=Firm?mail?sub?(uid=$local_part)

and then maybe add a "domains = planet-ic.de" to the router, so the ldap
lookup is only done for addresses in your domain.

     Barry