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

Pàgina inicial
Delete this message
Reply to this message
Autor: Mark Lowes
Data:  
A: Jan-Piet Mens
CC: Exim Users
Assumpte: Re: [exim] LDAP/SMTP AUTH fun and games
On Fri, 2004-12-10 at 13:11, Jan-Piet Mens wrote:
> On Fri Dec 10 2004 at 13:21:53 CET, Mark Lowes wrote:
>
> > 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

[...]
> Something like this may help:

[...]

Perfect, that put me on the right track, the final config looks like

--8<--
plain:
        driver = plaintext
        public_name = PLAIN
        server_condition = ${if ldapauth { \
                        user="${lookup ldapdn {ldap:///BASEDN?cn?sub?(mail=${quote_ldap:$2})}}" \
                        pass="$3" \
                        ldap:///BASEDN?uid?sub?(&(uid=${quote_ldap:$2})(mail=*)) \
                        }{yes}fail \
                }
        server_set_id=$2
--8<--


Many thanks :)

--
Mark Lowes <hamster@???>