liuli- at 263 dot net
Date: Sat Jun 05 2004 - 06:41:21 EDT
I have install postfix-2.1.1,cyrus-sasl-2.1.18 and openldap-2.1.30 in FreeBSD 4.10,I try auth against ldap using saslauthd,but I've a difficulty in smtpd authentication.
What I did is creating /usr/local/etc/saslauthd.conf:
and start saslauthd with "/usr/local/sbin/saslauthd -a ldap -O /usr/local/etc/saslauthd.conf"
my testsaslauthd is ok:
bash-2.05b# testsaslauthd -u postmaster at sww dot com dot cn -p admin
0: OK "Success.
but when I want to send an email by it, it told me that the user authentication is failed. My user name is "postmaster at sww dot com dot cn", password is "admin".
The log of openldap displayed that the sasl filter of ldap database querying is:
"conn=15 op=3 SRCH base="o=postfix,dc=sww,dc=com" scope=2 filter="(&(mail=postmaster)(objectClass=inetMailUser))"
conn=15 op=3 SRCH attr=userPassword "
not "mail=postmaster at sww dot com dot cn ", as I think.