Szerző: Phil Pennock Dátum: Címzett: Moritz Wilhelmy CC: exim-users Tárgy: Re: [exim] Check if LDAP server can be reached
On 2012-04-09 at 16:54 +0200, Moritz Wilhelmy wrote: > My naïve attempt at this would be putting the expansion as a condition
> into the localuser router:
>
> localuser:
> driver = accept
> check_local_user
> local_part_suffix = +* : -*
> local_part_suffix_optional
> transport = local_delivery
> cannot_route_message = Unknown user
> condition = ${if >={${lookup ldap{ldaps:///ou=People,dc=bla?uidNumber?sub?(uid=${quote_ldap:$local_user})}}}{1000}{yes}{no}}
>
> Currently, the condition looks like this:
> condition = ${if >={$local_user_uid}{1000}{yes}{no}}
>
> This should generate a temporary error if the ldap lookup fails, if I'm
> not mistaken?
I believe that you are correct.
If you are incorrect, then the documentation is incorrect.