Re: [Exim] LDAP lookup

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Ingvarr Zhmakin
CC: exim-users
Subject: 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.