Re: [Exim] "smtp auth login" and ldap

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Tobias
CC: exim-users@exim.org
Subject: Re: [Exim] "smtp auth login" and ldap

> how to confituge "smtp auth login" to search the passwords on a ldap server?
> i try the follow configuration, but outlook don't find the password:
>
> ldap_smtp_auth_login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = "ldap://127.0.0.1:389/c=DE?uname?sub?
> (password=*: ${local_part}:*)"

This condition is bullshit ;)
See the help for the ldapauth function and smtp-auth in general in the
exim documentation.
you need something like

${if ldapauth{user="uid=$1,c=DE" pass=$2 ldap:///} {yes} {no}} for LOGIN
and
${if ldapauth{user="uid=$2,c=DE" pass=$3 ldap:///} {yes} {no}} for PLAIN

as server_condition

the user="?" depends on your LDAP-Schema

ciao