Re: [exim] LDAP/SMTP AUTH fun and games

Pàgina inicial
Delete this message
Reply to this message
Autor: De Leeuw Guy
Data:  
A: Mark Lowes
CC: Exim Users
Assumpte: Re: [exim] LDAP/SMTP AUTH fun and games
Mark Lowes a écrit :

>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?
>
>
>

I thing but not sure that the attribute mail is on ascii and the
quote_ldap_dn is not needed.
Guy

--
Guy De Leeuw
IT Manager
Eurofer
211, rue du noyer
1000 Bruxelles
Belgium
mail: G.De_Leeuw@???
Tel.: 00 32 2 738 79 40