Re: [Exim] smtp authentication w/ldap - still struggling

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Thomas Hager
Datum:  
To: exim-users
Betreff: Re: [Exim] smtp authentication w/ldap - still struggling
--
On Wed, 2003-05-21 at 00:53, Jonathan Vanasco wrote:
[snip]

why don't you use the ldapauth expansion?
basically, if your users are able to authenticate against the ldap
server, you can use ldapauth to authenticate them in exim.

here's the plain conf i use:

plain:
    driver = plaintext
    public_name = PLAIN
    server_prompts = :
    server_condition = ${if ldapauth \
      {user="${lookup ldapdn \
    {ldap:///??sub?(uid=${quote_ldap:$2})}{$value}fail}" \
      pass="$3" \
      ldap:///}{yes}{no}}
    server_set_id = $value


after looking up the user's dn via the given username ( email address in
your case ) the authenticator tries to authenticate against the ldap
server with the looked up dn and the given password.

hth,
tom.


--

Thomas "Duke" Hager         | "Microsoft is not the answer.
duke@{bofh.at,1012surf.net} |  Microsoft is the question.
thomas.hager@???   |  NO is the answer."
                                       Erik Naggum.




--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--