[Exim] problems with plain auth

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Fernando Gutiérrez Pérez
日付:  
To: exim-users
新しいトピック: [Exim] Timeout retry issues.
題目: [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