Re: [exim] Assistance with authenticator syntax, please.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: nick
Date:  
À: exim-users
Sujet: Re: [exim] Assistance with authenticator syntax, please.
On 31/10/13 10:50, Jeremy Harris wrote:
> On 30/10/13 12:35, nick wrote:
> Is it just the if... and portion you need?
>
> If so: ${if and{ {cond1} {cond2} {as_many_as_you_like} }}
>
> ( ldapauth{} is suitable for cond2 )
>

Thanks for the reply John - I have tried that, and many other variants:

This is what I have as my latest attempt:

    server_condition = ${if and{
                                                     ${lookup 
ldap{ldap:///o=southover,c=uk?mail?sub? (& 
(cn=${quote_ldap_dn:$1})(smtpauth=${quote_ldap:TRUE}))}  }
${ldapauth{user="cn=${quote_ldap_dn:$1},o=southover,c=uk" 
pass=${quote:$2} ldap://ldap.southover.net/}  }
                                                   } {yes}{no}
                                        }
    server_set_id=$2


Which is an abject failure:
# exim -bV
      2013-10-31 11:15:50 Exim configuration error in line 229 of 
/etc/exim/exim.conf
           option setting expected: ${lookup 
ldap{ldap:///o=mistral,c=uk?mail?sub? (& 
(cn=${quote_ldap_dn:$1})(spamcheck=${quote_ldap:TRUE}))}  }



Any pointers or links to "Exim Syntax for Dummies" would be very useful. :-)


kind regards,
n.