[exim] LDAP-DN-Lookups for authenticators

Página Inicial
Delete this message
Reply to this message
Autor: Dennis Ploeger
Data:  
Para: exim-users
Assunto: [exim] LDAP-DN-Lookups for authenticators
Hi List!

@kerstin:Na, überrascht? ;-)

I'm currently configuring an exim mailer together with courier-imap and
a ldap-backend. It works all _very_ fine currently, except smtp-auth. I
have some problems configuring it right to do a lookup for the user for
ldapauth. (Yes, I'm doing a lookup for the username since I can't get it
from the smtp-auth session)

That's my conf (I've only extracted the login-authenticator):

login:
   driver = plaintext
   public_name= LOGIN
   server_prompts = "Username:: : Password::"
   server_condition = ${if ldapauth \
      {user= ${lookup ldapdn \
               { \
               user="cn=epicforge reader, cn=readers, dc=epicforge, 
dc=com" \
               pass="xxxxxxx" \


ldap://127.0.0.1:389/dc=epicforge,dc=com?dn?sub?(mail=${quote_ldap:$1}) \
               } \
              } \
       pass=$2 \
      ldap://127.0.0.1:389/dc=epicforge,dc=com?uid?sub?(uid=$1)}{yes}{no}}
   server_set_id=$1


What I'm getting is an

435 Unable to authenticate at present (set_id=ploeger@???):
unknown parameter "cn=" precedes LDAP URL

I tried to use quote_ldap and quote_ldap_dn for the ${lookup, but that
didn't do the trick...

What am I missing? Perhaps someone can help me!

Kind regards,
Dennis