Re: [exim] 'boolean' LDAP query...

Góra strony
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Dla: exim-users
Temat: Re: [exim] 'boolean' LDAP query...
On 07/12/2018 12:05, Marco Gaiarin via Exim-users wrote:
>     unseen = ${if eq{${lookup ldapm {user=LOCAL_AD_BIND_DN pass=LOCAL_AD_PASS ldap:///LOCAL_AD_ALIASES_DN?rfc822MailMember?sub?(&(objectClass=nisMailAlias)(cn=${quote_ldap:${local_part}}@${quote_ldap:${domain}}))}}}{}{no}{yes}}

>
> query work (tested by hand; and if i set manually 'unseen = yes', it is
> used by the subsequent router) but 'unseen' is every time 'no'.
>
>
> Probably is because checking for empty result in an ldap query have soem
> trouble.


I think you need to find out what it's actually doing in the router
context. Try running with debug enabled, either by starting your
daemon with extra commandline options (it'll output to stderr) or
by patching an ACL "debug=" modifier at some convenient point
(it'll output to a file).
--
Cheers,
Jeremy