我在Ubuntu 16服务器上安装了Ngircd(易于安装) 我们需要对所有连接到IRC服务器的用户进行PAM身份验证,因此这是conf文件的内容: /etc/ngircd/ngircd.conf:
PAM = yes
PAMServiceName = ngircd
在以下位置配置的PAM服务:/etc/pam.d/ngircd
auth required pam_pwdfile.so debug pwdfile=/etc/ngircd/passwd
The passwd file: simon:$6$gM4BSAdh$sJkwzOgSU17tGEAmh18HkG7kWpRjIi750u5ZXIh8IFWGoOpSL56LSvhHe2X.lfej4gIjr127Di1KIEca/8zZC1
妊娠期成功========
root@ip-172-30-0-231:/etc/ngircd# pamtester ngircd simon authenticate
Password:
pamtester: successfully authenticated
但是,我仍然无法通过Ngircd进行身份验证
Mar 21 05:32:10 localhost ngircd[30537]: pam_pwdfile(ngircd:auth): wrong password for user simon
Mar 21 05:32:26 localhost ngircd[30539]: pam_pwdfile(ngircd:auth): setting fail delay
Mar 21 05:32:26 localhost ngircd[30539]: pam_pwdfile(ngircd:auth): username is simon
Mar 21 05:32:26 localhost ngircd[30539]: pam_pwdfile(ngircd:auth): got crypted password == '$6$gM4BSAdh$sJkwzOgSU17tGEAmh18HkG7kWpRjIi750u5ZXIh8IFWGoOpSL56LSvhHe2X.lfej4gIjr127Di1KIEca/8zZC1'
Mar 21 05:32:26 localhost ngircd[30539]: pam_pwdfile(ngircd:auth): wrong password for user simon
我花了4天时间解决这个问题,却一无所知 请帮我