Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3279019
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类:

2007-10-13 16:46:38

From: Chris Paul (openbsdrexconsulting.net)
Date: Fri Apr 15 2005 - 02:45:42 CDT


Dear Misc,

I had this working on an OpenBSD 3.5 box but haven't been able to get it to work since then. I'm trying now on 3.7.

- SASL is running with LDAP as the map:

[rootdonut:/root]# ps -ax|grep sasl
25762 ?? Is 0:00.02 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
28777 ?? I 0:00.01 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
27046 ?? I 0:00.00 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
 3741 ?? I 0:00.01 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
29628 ?? I 0:00.00 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf

- SASL works:

testsaslauthd -u -p -f /var/spool/postfix/var/sasl2/mux
0: OK "Success."

- But Postfix isn't happy with it, though it is in the postfix chroot (in the right place, I thought):

Apr 15 00:36:25 donut postfix/smtpd[19927]: warning: SASL authentication failure: Password verification failed
Apr 15 00:36:25 donut postfix/smtpd[19927]: warning: unknown[10.7.5.50]: SASL PLAIN authentication failed
Apr 15 00:37:05 donut postfix/smtpd[19927]: warning: unknown[10.7.5.50]: SASL LOGIN authentication failed

- Just fooling with things, I stopped SASL to see if I would get a different error. I did and it indicates that at least in the above failure, the socket is in the correct place (as it isn't found, as expected, when the saslauthd daemon is not running)

Apr 15 00:27:56 donut postfix/smtpd[21008]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Apr 15 00:27:56 donut postfix/smtpd[21008]: warning: SASL authentication failure: Password verification failed
Apr 15 00:27:56 donut postfix/smtpd[21008]: warning: unknown[10.7.5.50]: SASL PLAIN authentication failed

- here is the perms on the socket:

[cpauldonut] $ ls -l /var/spool/postfix/var/sasl2
total 2
srwxrwxrwx 1 root wheel 0 Apr 15 00:36 mux
-rw------- 1 root wheel 0 Apr 15 00:36 mux.accept
-rw------- 1 root wheel 6 Apr 15 00:36 saslauthd.pid

Any clues?

thanks,

CP
阅读(2326) | 评论(0) | 转发(0) |
0

上一篇:SASL2调试

下一篇:sasl相关

给主人留下些什么吧!~~