[exim] SMTP-Auth via LDAP error

Pàgina inicial
Delete this message
Reply to this message
Autor: Torben Janssen
Data:  
A: exim-users
Assumpte: [exim] SMTP-Auth via LDAP error
Hi,

I am using LDAP to authenticate Users for SMTP-Auth. My exim.conf looks
like this:

----------------------------------------------------------------------------------------------------------------------------------------------------------
begin authenticators

login:
driver = plaintext
public_name = LOGIN
server_prompts = Username:: : Password::
server_condition = ${if ldapauth
{user="uid=${quote_ldap_dn:$1},ou=users,dc=keineahnung,dc=org"
pass=${quote:$2} ldap://localhost/}{yes}{no}}
server_set_id = $1

plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_condition = ${if ldapauth
{user="uid=${quote_ldap_dn:$1},ou=users,dc=keineahnung,dc=org"
pass=${quote:$2} ldap://localhost/}{yes}{no}}
server_set_id = $2
----------------------------------------------------------------------------------------------------------------------------------------------------------

When I am sending Mails via Thunderbird the logfiles show me some errors:

----------------------------------------------------------------------------------------------------------------------------------------------------------
==> /var/log/messages <==
Oct 28 10:30:25 slapd[7680]: conn=25 fd=15 ACCEPT from
IP=127.0.0.1:60714 (IP=0.0.0.0:389)
Oct 28 10:30:25 slapd[2516]: bind: invalid dn
(uid=,ou=users,dc=keineahnung,dc=org)
Oct 28 10:30:25 slapd[2516]: conn=25 op=0 RESULT tag=97 err=34
text=invalid DN
Oct 28 10:30:25 slapd[29408]: conn=25 op=1 BIND
dn="uid=torben,ou=users,dc=keineahnung,dc=org" method=128
Oct 28 10:30:25 slapd[29408]: conn=25 op=1 BIND
dn="uid=torben,ou=users,dc=keineahnung,dc=org" mech=SIMPLE ssf=0
Oct 28 10:30:25 slapd[29408]: conn=25 op=1 RESULT tag=97 err=0 text=
Oct 28 10:30:25 slapd[7840]: conn=25 op=2 UNBIND

==> /var/log/exim/exim_mainlog <==
2005-10-28 10:30:25 plain authenticator failed for xxx.t-ipconnect.de
[xx.xxx.xx.xxx]: 435 Unable to authenticate at present (set_id=torben):
failed to bind the LDAP connection to server localhost:389 - LDAP error
34: Invalid DN syntax

==> /var/log/messages <==
Oct 28 10:30:25 lvps80-237-163-162 slapd[7840]: conn=25 fd=15 closed

==> /var/log/exim/exim_mainlog <==
2005-10-28 10:30:27 1EVPd3-0000GQ-Qz <= torben@???
H=xxx.t-ipconnect.de [xx.xxx.xx.xxx] P=esmtpsa X=TLSv1:AES256-SHA:256
A=login:torben S=539 id=4361E198.4090205@???
2005-10-28 10:30:27 1EVPd3-0000GQ-Qz => teejot@??? R=dnslookup
T=remote_smtp H=mx0.gmxxxx.de [213.165.64.100]
2005-10-28 10:30:27 1EVPd3-0000GQ-Qz Completed
----------------------------------------------------------------------------------------------------------------------------------------------------------

So my question is if exim only tries all authenticators and some can
fail or if this is a bad configuration? When I enter a bad password
relaying is denied. Since I do not want to be a openrelay I am a bit
worried.

thank you
torben