iT邦幫忙

0

openwebmail上無法變更密碼

小弟近日自行建立環境來測試,安裝openldap、openwebmail 及 PAM認證模組
目前遇到帳戶登入webmail後變更密碼會出現『密碼錯誤, 變更不成功.』。

底層看 ldap.log 有出現
Mar 21 17:19:49 mail slapd[1679]: conn=1007 op=5 MOD attr=userPassword
Mar 21 17:19:49 mail slapd[1679]: conn=1007 op=5 RESULT tag=103 err=50 text=

而目前ldap ACL看起來設定無誤
access to attrs=userPassword
by self write
by dn="cn=Manager,dc=abc,dc=com" write
by users peername.IP=192.168.126.0%255.255.255.0 write
by anonymous auth
by * none

access to *
by dn="cn=Manager,dc=abc,dc=com" write
by anonymous peername.IP=127.0.0.1 read
by anonymous peername.IP=192.168.126.0%255.255.255.0 write
by self write
by users read

而在openwebmail.log中出現
Fri Mar 21 16:50:40 2014 - [2543] (192.168.126.1) testuser - change password error - auth_pam.pl, ret -4, pam_authtok() err 10, User not known to the underlying authentication module

openwebmail 在pam.d 下的設定

#%PAM-1.0
auth sufficient /lib/security/$ISA/pam_ldap.so
auth required /lib/security/$ISA/pam_unix.so
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_ldap.so
password sufficient /lib/security/$ISA/pam_ldap.so
password required /lib/security/$ISA/pam_unix.so

不曉得是哪裡的設定有誤造成此問題?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
2
macliu
iT邦研究生 5 級 ‧ 2014-03-22 08:59:53
最佳解答

要修改auth_pam.pl

好久沒用opemwebmail
忘記檔案內容
但在前幾行而已

================================
馬克資訊科技有限公司(M.I.T.C.)
系統工程師
Mac Liu(劉淵精)
[MCSE/MCDBA/CCNA/TCSE/RHCSA/RHCE]
macliu@mac-tech.idv.tw
Http://www.mac-it.com.tw
TEL:02-87928846
FAX:02-87928845
Mobile:0927-300404
MSN&FB:macliu_tw@hotmail.com

公司資格:丙種電器承裝業、丙種電信工程業
人員資格:丙級用電設備檢驗技術士、丙級網路架設技術士、丙級電腦硬體裝修技術士、乙級電腦硬體裝修技術士、丙級視聽電子技術士、丙級工業電子技術士
訓練資格:勞工安全衛生管理員結訓、佈線系統測試工程師結訓
特殊資格:甲種勞工安全衛生業務主管、初級救護技術員、繩索作業技術人員、中華山岳協會C級運動攀登教練
保險資格:人身壽險業務員、產物保險業務員

2
hcsvieken
iT邦研究生 4 級 ‧ 2014-03-24 08:29:21

我之前也遇到無法改密碼的問題,但當初未作記錄所以也不知道改了什麼?我的設定檔為

access to attrs=userPassword
by self write
by users read
by anonymous auth
access to * by * read

0
openfind
iT邦新手 1 級 ‧ 2014-04-07 14:15:10

通常這類的問題是 ldap 驗證失敗導致
可能可以就 slapd.conf 的內容再測試看看
或是在 openwebmail 上以 ldapmodify 的指令修改密碼看看可否成功

提供給你參考嚕
希望有幫上忙 XD

我要發表回答

立即登入回答