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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: De Leeuw Guy
日付:  
To: Mark Lowes
CC: Exim Users
題目: 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