[Exim] LDAP lookup

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Ingvarr Zhmakin
Data:  
Para: exim-users
CC: 
Assunto: [Exim] LDAP lookup
Morning.

Consider a server with a bunch of local users and som LDAP-located ones.
It has the following director:
===
ldap_forward:
driver = forwardfile
file = .forward
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
filter
no_verify
check_ancestor
check_local_user = false
user = ${lookup ldap{ldap:///uid=$local_part,<...>?uidNumber}{$value}{mail}}
group = mail
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
victim@domain cannot be resolved at this time:
failed to expand "${lookup
ldap{ldap:///uid=$local_part,<...>?homeDirectory}{$value}fail}": "lookup"
failed and "fail" requested: LDAP search: no results
===

What's up?

ThnxIA.

--

                           Ingvarr.