歡迎您光臨本站 註冊首頁

求助:authdaemond: supplied password does not match encrypted password

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

求助:authdaemond: supplied password does not match encrypted password

從postfixadmin上用郵件帳戶登陸是可以的,但是從客戶端怎麼就不行了呢


RedHat Enterprise Linux Server 4.2 + Postfix + PostfixAdmin + MySQL + Cyrus-sasl + Courier-authlib + Dovecot

已經使用postfixadmin 建立了 alan@yahoo.lt 的 用戶和郵箱,OUTLOOK客戶端 使用用戶名alan@yahoo.lt ,輸入密碼后無法登陸.



查看maillog記錄
Sep 26 21:17:00 mail postfix/smtpd: connect from unknown
Sep 26 21:17:00 mail authdaemond: received auth request, service=smtp, authtype=login
Sep 26 21:17:00 mail authdaemond: authmysql: trying this module
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"
Sep 26 21:17:00 mail authdaemond: supplied password does not match encrypted password
Sep 26 21:17:00 mail authdaemond: authmysql: REJECT - try next module
Sep 26 21:17:00 mail authdaemond: FAIL, all modules rejected
Sep 26 21:17:00 mail postfix/smtpd: warning: unknown: SASL LOGIN authentication failed
Sep 26 21:17:00 mail postfix/smtpd: lost connection after AUTH from unknown
Sep 26 21:17:00 mail postfix/smtpd: disconnect from unknown

OUTLOOK客戶端 使用用戶名alan@yahoo.lt ,輸入密碼后無法登陸.
同時mysql收到命令
SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt'

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

mysql> SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt';
+----------+
| password |
+----------+
| alan     |
+----------+
1 row in set (0.00 sec)

[ 本帖最後由 very_99 於 2007-9-27 18:56 編輯 ]
《解決方案》

呵呵,祝賀你!原因應該是courier-authlib考慮到安全問題,強制認證時用戶的UID大於500。
《解決方案》

為什麼還是說我   
authdaemond: supplied password does not match encrypted password

查到密碼和我客戶端輸入的密碼是一致的
《解決方案》

在outlook中打開使用認證的功能,並確保你認證時使用的用戶名為alan@yahoo.lt,密碼對應即可。
《解決方案》

"在outlook中打開使用認證的功能"  什麼意思?

你在另外個帖子里讓我 #service saslauthd start;
  有什麼作用呢?
《解決方案》

courier-authlib會使用你指定sasl來進行用戶認證,其實不需要啟動saslauthd進程,我只是想讓你開啟確定一下的確不是這兒的問題。

outlook中的認證功能等我發圖給你。
《解決方案》

這個是第一步,注意看圈著的那些:



這裡要填上你的用戶名和密碼,用戶名為全寫,如:user@domain.lt

《解決方案》

我選了.   現在感覺連POP3的驗證也不能通過.

沒有使用資料庫做sasl驗證的時候沒出現問題.  現在比較迷茫


辛苦了 謝謝啊 :em02:
《解決方案》

沒關係,郵於對問題的興趣,呵呵。

你重啟下courier-authlib和postifx的進程,而後再登錄一次,把相關的日誌發上來。
《解決方案》

# service courier-authlib restart
Stopping Courier authentication services: authdaemond
Starting Courier authentication services: authdaemond
# service postfix  restart
Shutting down postfix: [  OK  ]
Starting postfix: [  OK  ]

Sep 26 22:05:24 mail authdaemond: stopping authdaemond children
Sep 26 22:05:24 mail authdaemond: modules="authmysql", daemons=10
Sep 26 22:05:24 mail authdaemond: Installing libauthmysql
Sep 26 22:05:24 mail authdaemond: Installation complete: authmysql
Sep 26 22:05:33 mail postfix/postfix-script: stopping the Postfix mail system
Sep 26 22:05:33 mail postfix/master: terminating on signal 15
Sep 26 22:05:34 mail postfix/postfix-script: starting the Postfix mail system
Sep 26 22:05:34 mail postfix/master: daemon started -- version 2.2.5, configuration /etc/postfix

客戶端連接一下
Sep 26 22:07:23 mail postfix/smtpd: connect from unknown
Sep 26 22:07:23 mail authdaemond: received auth request, service=smtp, authtype=login
Sep 26 22:07:23 mail authdaemond: authmysql: trying this module
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"
Sep 26 22:07:23 mail authdaemond: supplied password does not match encrypted password
Sep 26 22:07:23 mail authdaemond: authmysql: REJECT - try next module
Sep 26 22:07:23 mail authdaemond: FAIL, all modules rejected
Sep 26 22:07:23 mail postfix/smtpd: warning: unknown: SASL LOGIN authentication failed
Sep 26 22:07:23 mail postfix/smtpd: lost connection after AUTH from unknown
Sep 26 22:07:23 mail postfix/smtpd: disconnect from unknown

[火星人 ] 求助:authdaemond: supplied password does not match encrypted password已經有367次圍觀

http://coctec.com/docs/service/show-post-30252.html