[exim] LDAP/SMTP AUTH fun and games

Pàgina inicial
Delete this message
Reply to this message
Autor: Mark Lowes
Data:  
A: Exim Users
Assumpte: [exim] LDAP/SMTP AUTH fun and games
Afternoon all,

I'm trying to get smtpauth working with ldap using the email address
stored in ldap ("mail") as the username, I thought the following should
work

--8<--
plain:
        driver= plaintext
        public_name = PLAIN
        server_condition = ${if ldapauth \
                {user="mail=${quote_ldap_dn:$2},o=mistral,c=uk" \
                pass=${quote:$3} \
                ldap://ldap.mistral.net/}{yes}{no}}
        server_set_id=$2
--8<--


The following does work (using the username as the key)

--8<--
plain:
        driver= plaintext
        public_name = PLAIN
        server_condition = ${if ldapauth \
                {user="cn=${quote_ldap_dn:$2},o=mistral,c=uk" \
                pass=${quote:$3} \
                ldap://ldap.mistral.net/}{yes}{no}}
        server_set_id=$2
--8<--


Anyone got any ideas?

--
Mark Lowes <hamster@???>