免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 12627 | 回复: 23
打印 上一主题 下一主题

[Mail] 求助:authdaemond: supplied password does not match encrypted password [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-27 17:54 |只看该作者 |倒序浏览
10可用积分
从postfixadmin上用邮件帐户登陆是可以的,但是从客户端怎么就不行了呢


  1. RedHat Enterprise Linux Server 4.2 + Postfix + PostfixAdmin + MySQL + Cyrus-sasl + Courier-authlib + Dovecot
复制代码


已经使用postfixadmin 建立了 alan@yahoo.lt 的 用户和邮箱,OUTLOOK客户端 使用用户名alan@yahoo.lt ,输入密码后无法登陆.



查看maillog记录
  1. Sep 26 21:17:00 mail postfix/smtpd[15526]: connect from unknown[192.168.77.11]
  2. Sep 26 21:17:00 mail authdaemond: received auth request, service=smtp, authtype=login
  3. Sep 26 21:17:00 mail authdaemond: authmysql: trying this module
  4. Sep 26 21:17:00 mail authdaemond: SQL query: SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
  5. Sep 26 21:17:00 mail authdaemond: supplied password does not match encrypted password
  6. Sep 26 21:17:00 mail authdaemond: authmysql: REJECT - try next module
  7. Sep 26 21:17:00 mail authdaemond: FAIL, all modules rejected
  8. Sep 26 21:17:00 mail postfix/smtpd[15526]: warning: unknown[192.168.77.11]: SASL LOGIN authentication failed
  9. Sep 26 21:17:00 mail postfix/smtpd[15526]: lost connection after AUTH from unknown[192.168.77.11]
  10. Sep 26 21:17:00 mail postfix/smtpd[15526]: disconnect from unknown[192.168.77.11]
复制代码


OUTLOOK客户端 使用用户名alan@yahoo.lt ,输入密码后无法登陆.
同时mysql收到命令
  1. SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
  2. SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt'
复制代码


使用此命令在mysql上可以查到
  1. mysql> SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
  2.     -> ;
  3. +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
  4. | username      | password |  | 102 | 104 | concat('/home/mailbox/',maildir) | concat('/home/mailbox/',maildir) |  | name |  |
  5. +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
  6. | [email]alan@yahoo.lt[/email] | alan     |  | 102 | 104 | /home/mailbox/yahoo.lt/alan/     | /home/mailbox/yahoo.lt/alan/     |  |      |  |
  7. +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
  8. 1 row in set (0.00 sec)

  9. mysql> SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt';
  10. +----------+
  11. | password |
  12. +----------+
  13. | alan     |
  14. +----------+
  15. 1 row in set (0.00 sec)
复制代码

[ 本帖最后由 very_99 于 2007-9-27 18:56 编辑 ]

最佳答案

查看完整内容

呵呵,祝贺你!原因应该是courier-authlib考虑到安全问题,强制认证时用户的UID大于500。

论坛徽章:
0
2 [报告]
发表于 2007-09-27 17:54 |只看该作者
呵呵,祝贺你!原因应该是courier-authlib考虑到安全问题,强制认证时用户的UID大于500。

论坛徽章:
0
3 [报告]
发表于 2007-09-27 17:59 |只看该作者
为什么还是说我   
authdaemond: supplied password does not match encrypted password

查到密码和我客户端输入的密码是一致的

论坛徽章:
0
4 [报告]
发表于 2007-09-27 18:10 |只看该作者
在outlook中打开使用认证的功能,并确保你认证时使用的用户名为alan@yahoo.lt,密码对应即可。

论坛徽章:
0
5 [报告]
发表于 2007-09-27 18:14 |只看该作者
"在outlook中打开使用认证的功能"  什么意思?

你在另外个帖子里让我 #service saslauthd start;
  有什么作用呢?

论坛徽章:
0
6 [报告]
发表于 2007-09-27 18:17 |只看该作者
courier-authlib会使用你指定sasl来进行用户认证,其实不需要启动saslauthd进程,我只是想让你开启确定一下的确不是这儿的问题。

outlook中的认证功能等我发图给你。

论坛徽章:
0
7 [报告]
发表于 2007-09-27 18:23 |只看该作者
这个是第一步,注意看圈着的那些:



这里要填上你的用户名和密码,用户名为全写,如:user@domain.lt

论坛徽章:
0
8 [报告]
发表于 2007-09-27 18:24 |只看该作者
我选了.   现在感觉连POP3的验证也不能通过.

没有使用数据库做sasl验证的时候没出现问题.  现在比较迷茫


辛苦了 谢谢啊

论坛徽章:
0
9 [报告]
发表于 2007-09-27 18:28 |只看该作者
没关系,邮于对问题的兴趣,呵呵。

你重启下courier-authlib和postifx的进程,而后再登录一次,把相关的日志发上来。

论坛徽章:
0
10 [报告]
发表于 2007-09-27 18:31 |只看该作者
  1. [root@mail ~]# service courier-authlib restart
  2. Stopping Courier authentication services: authdaemond
  3. Starting Courier authentication services: authdaemond
  4. [root@mail ~]# service postfix  restart
  5. Shutting down postfix: [  OK  ]
  6. Starting postfix: [  OK  ]
复制代码

  1. Sep 26 22:05:24 mail authdaemond: stopping authdaemond children
  2. Sep 26 22:05:24 mail authdaemond: modules="authmysql", daemons=10
  3. Sep 26 22:05:24 mail authdaemond: Installing libauthmysql
  4. Sep 26 22:05:24 mail authdaemond: Installation complete: authmysql
  5. Sep 26 22:05:33 mail postfix/postfix-script: stopping the Postfix mail system
  6. Sep 26 22:05:33 mail postfix/master[14514]: terminating on signal 15
  7. Sep 26 22:05:34 mail postfix/postfix-script: starting the Postfix mail system
  8. Sep 26 22:05:34 mail postfix/master[15696]: daemon started -- version 2.2.5, configuration /etc/postfix
复制代码


客户端连接一下
  1. Sep 26 22:07:23 mail postfix/smtpd[15703]: connect from unknown[192.168.77.11]
  2. Sep 26 22:07:23 mail authdaemond: received auth request, service=smtp, authtype=login
  3. Sep 26 22:07:23 mail authdaemond: authmysql: trying this module
  4. Sep 26 22:07:23 mail authdaemond: SQL query: SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
  5. Sep 26 22:07:23 mail authdaemond: supplied password does not match encrypted password
  6. Sep 26 22:07:23 mail authdaemond: authmysql: REJECT - try next module
  7. Sep 26 22:07:23 mail authdaemond: FAIL, all modules rejected
  8. Sep 26 22:07:23 mail postfix/smtpd[15703]: warning: unknown[192.168.77.11]: SASL LOGIN authentication failed
  9. Sep 26 22:07:23 mail postfix/smtpd[15703]: lost connection after AUTH from unknown[192.168.77.11]
  10. Sep 26 22:07:23 mail postfix/smtpd[15703]: disconnect from unknown[192.168.77.11]
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP