[Exim] smtpauth and ldap

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Sirko Krauskopf
Datum:  
To: exim-users
Betreff: [Exim] smtpauth and ldap
I try to setup smtpauth using LDAP in exim 4.0.5.

my authenticators ...
login:
      driver = plaintext
      public_name = LOGIN
      server_prompts = Username:: : Password::
      server_condition = ${if ldapauth \
      {user="cn=${quote_ldap:$1},dc=berlin,dc=kpc,dc=de" pass="$2" \
      ldap://127.0.0.1/}{yes}{no}}


a test results in the following error

LDAP parameters: user=cn=remote,dc=berlin,dc=kpc,dc=de pass=secret size=0
time=0
perform_ldap_search: ldapauth URL ="ldap://127.0.0.1/" server=NULL port=0
sizelimit=0 timelimit=0
Initialized connection with LDAP server 127.0.0.1:389
LDAP_OPT_X_TLS_TRY set
--Malloc 135045432    28         ldap.c  255 8192 4931
--Malloc 135045464    16       string.c  365 8192 4947
Binding with user=cn=remote,dc=berlin,dc=kpc,dc=de password=secret
Bind failed: ldapauth returns FAIL
---0 Get 135022864   104       string.c  759
---0 Rst 135022868    **       expand.c 3047 8192
---0 Get 135022872   104       string.c  759
---0 Rst 135022875    **       expand.c 3047 8192
---0 Get 135022880   104       string.c  759
---0 Rst 135022883    **       expand.c 3047 8192
login authenticator:
  $1 = remote
  $2 = secret
expanded string: no
--0 Get 135022888    40       string.c  346

SMTP>> 535 Incorrect authentication data


the "ldap.log" shows err=49 invalid credentials

looks like wrong ldappermissions?!

For testing i've tried a workaround using the following slapd.conf

access to *
        by * write
        by * read


... the same error.

If I use the username=manager pass=therightone then it works fine ...

any ideas?

Sirko
--
gpg-key: http://unixoid.de/zero05/public_key.asc