[exim] failed to expand error in lookup ldap

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Cameron Gregg
Dátum:  
Címzett: Exim-users
CC: 
Tárgy: [exim] failed to expand error in lookup ldap
Hi All,

I've been trying all day to setup a particular ldap lookup in exim 4.42,
but I cant see where I'm going wrong, maybe somebody can see the problem.

I've got a virtual domain setup, where the router does a simple lookup
for the uid (email address).

virtual_domains:
         driver = accept
         domains = +local_domains
         local_parts = ${lookup ldap
{user="uid=exim,ou=sysUsers,dc=local" pass=blah
ldaps://quarto.yak.lan/domain-name
=$domain,ou=domains,dc=local?UserName?sub?(&(mailEnabled=TRUE)(uid=${quote_ldap:$local_part@$domain})}
{$value} fail
}
         transport = virtual_mailboxes


this gives an error in my logs of:

2004-10-11 15:51:14 failed to expand "${lookup ldap
{user="uid=exim,ou=sysUsers,dc=local" pass=blah
ldaps://quarto.yak.lan/domain-name=$domain,ou=domains,dc=local?UserName?sub?(&(mailEnabled=TRUE)(uid=${quote_ldap:$local_part@$domain})}
{$value} fail }" while checking a list: lookup of
"user="uid=exim,ou=sysUsers,dc=local" pass=blah
ldaps://quarto.yak.lan/domain-name=example.com,ou=domains,dc=local?UserName?sub?(&(mailEnabled=TRUE)(uid=info%40example.com)"
gave DEFER: ldap search initiation failed
2004-10-11 15:51:14 H=junkyard.yak.lan (Junkyard) [192.168.30.68]
F=<cam@???> temporarily rejected RCPT <info@???>: ldap
search initiation failed


This is interesting because I had a simpler router, that works
perfectly, here it is:

virtual_domains:
         driver = accept
         domains = +local_domains
         local_parts = ${lookup ldap 
{user="uid=exim,ou=sysUsers,dc=local" pass=blah 
ldaps://quarto.yak.lan/uid=$local_par
t@$domain,domain-name=$domain,ou=domains,dc=local?UserName?base?(mailEnabled=TRUE)} 
{$value} fail   }
        transport = virtual_mailboxes




So the error occurs when I do a sub search instead of a base search (and
I want the sub to work because the uid's wont all be in the same spot).


Any ideas?

Thanks
Cameron