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:
ldap_servers: ldap://localhost/
ldap_search_base: o=postfix,dc=sww,dc=com
ldap_auth_method: custom
ldap_port: 389
ldap_filter: (&(mail=%u)(objectclass=inetMailUser))
ldap_password_attr: userPassword
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.
thanks!
==========================
263电子邮件-信赖邮自专业
|
|
|