[Exim] problem with smtp auth with ldap

Página Inicial
Delete this message
Reply to this message
Autor: Kai Riasol Gonzalez
Data:  
Para: exim-users
Assunto: [Exim] problem with smtp auth with ldap
hi

i am using exim 4.34 with ldap support.
i want to make smtp auth with ldap. this is my smtpauth config in the
exim.conf. the value mail has the loginname and the value userPassword the
password.

cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup ldap{user=LDAPUSER pass=LDAPPASS
ldap://localhost/ou=user,dc=domain,dc=net?userPassword?sub?(mail=$1)}{$value}fail}
server_set_id = $2

login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username: : Password:"
server_condition = ${lookup ldap {user=LDAPUSER pass=LDAPPASS
ldap://localhost/ou=user,dc=domain,dc=net?userPassword?sub?(mail=$1)}{$value}fail}
server_set_id = $1

plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup ldap{user=LDAPUSER pass=LDAPPASS
ldap://localhost/ou=user,dc=domain,dc=net?userPassword?sub?(mail=$1)}{$value}fail}
server_set_id = $1


if i try to make smtpauth i get this.


2004-06-20 13:33:24 cram authenticator failed for p5080fd26.dip.t-dialin.net
([192.168.1.17]) [80.128.253.38]: 535 Incorrect authentication data

2004-06-20 13:33:25 login authenticator failed for p5080fd26.dip.t-dialin.net
([192.168.1.17]) [80.128.253.38]: 435 Unable to authenticate at present
(set_id=exim@???): {crypt}xsdfiiejnk


thx

kai