[Exim] problems in smtp auth

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Fernando Gutierrez Perez
Date:  
À: exim-users
Sujet: [Exim] problems in smtp 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