[Exim] problems with plain auth

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Fernando Gutiérrez Pérez
Datum:  
To: exim-users
Neue Treads: [Exim] Timeout retry issues.
Betreff: [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