Re: [Exim] LDAP lookup

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Ingvarr Zhmakin
CC: exim-users
Asunto: Re: [Exim] LDAP lookup
On Tue, 22 Jan 2002, Ingvarr Zhmakin wrote:

> ldap_forward:
> driver = forwardfile
> file = .forward

[snip]
> file_directory =
> ${lookup ldap{ldap:///uid=$local_part,<...>?homeDirectory}{$value}{}}
> modemask = 022
> ===
>
> Now if I change `{mail}' and `{}' in lookups to `fail' so that this won't
> succeed for file `/.forward' everything works for LDAP users, but for local I
> get (via `exim -d2 -bt victim'):
>
> ===
> ldap_forward director: error for victim
> message: failed to expand "${lookup
> ldap{ldap:///uid=$local_part,<...>?homeDirectory}{$value}fail}": "lookup"
> failed and "fail" requested: LDAP search: no results



If you set "file_directory" to an expansion string that fails to expand,
the forwardfile director cannot proceed because it doesn't know in what
directory to look for .forward.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.