[Exim] problems with plain auth

Pàgina inicial
Delete this message
Reply to this message
Autor: Fernando Gutiérrez Pérez
Data:  
A: exim-users
Assumptes nous: [Exim] Timeout retry issues.
Assumpte: [Exim] problems with plain auth
Hi, i'm trying to do smtp AUTH search into 2 ldap servers depending
domain that user send to me. My server condition is this:

server_condition = ${if eq {${extract{2}{@}{$2}}}{domain1.com}{${if
crypteq {$3} {${sg{${lookup ldap
{ldap://ldap1.mydomain.com/o=domain1.com?userpassword?sub?(mail=$2)}}}
{\\\{SHA\\\}} {\\\{sha1\\\}} }} {yes}{no}}}{ ${if crypteq {$3}
{${sg{${lookup ldap {user="uid=oneuser,o=root" pass="secret"
ldap://ldap2.mydomain.com/o=root?userpassword?sub?(mail=$2)}}}
{\\\{SHA\\\}} {\\\{sha1\\\}} }} {yes}{no}} }}

But don't work if domain is not domain1... but the expression is
expanded and return's yes .

Thanks in advance