在redhat as5上安装了poppassd,在pam里做了设置,poppassd 的106端口也起来了
通过telnet这个端口来测试是否能够修改密码,始终发现出现:
200 poppassd v1.8.5 hello, who are you?
username test
200 Your password please.
password 123456
500 Old password is incorrect.
补充以下日志
security 日志:
Aug 16 09:53:08 localhost login: FAILED LOGIN 2 FROM localhost FOR , User not kn
own to the underlying authentication module
Aug 16 09:53:08 localhost login: pam_unix(remote:auth): bad username []
Aug 16 09:53:08 localhost login: pam_succeed_if(remote:auth): error retrieving i
nformation about user
Aug 16 09:53:08 localhost login: FAILED LOGIN 3 FROM localhost FOR , User not kn
own to the underlying authentication module
Aug 16 09:53:09 localhost login: pam_unix(remote:auth): bad username []
Aug 16 09:53:09 localhost login: pam_succeed_if(remote:auth): error retrieving i
nformation about user
Aug 16 09:53:09 localhost login: FAILED LOGIN SESSION FROM localhost FOR , User
not known to the underlying authentication module
Aug 16 09:53:25 localhost poppassd[29041]: pam_unix(passwd:auth): check pass; us
er unknown
Aug 16 09:53:25 localhost poppassd[29041]: pam_unix(passwd:auth): authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=
Aug 16 09:53:25 localhost poppassd[29041]: pam_succeed_if(passwd:auth): error re
trieving information about user name
poppassd 日志:
Aug 16 08:31:14 localhost poppassd[28357]: old password is incorrect for user na
me
Aug 16 08:33:11 localhost poppassd[28369]: old password is incorrect for user na
me
Aug 16 09:09:43 localhost poppassd[28599]: PAM error: BAD PASSWORD: it is too si
mplistic/systematic
Aug 16 09:09:43 localhost last message repeated 2 times
Aug 16 09:09:43 localhost poppassd[28599]: changed POP3 password for test
Aug 16 09:53:28 localhost poppassd[29041]: old password is incorrect for user na
me
message的日志
Aug 16 09:52:55 localhost xinetd[29034]: xinetd Version 2.3.14 started with libw
rap loadavg labeled-networking options compiled in.
Aug 16 09:52:55 localhost xinetd[29034]: Started working: 2 available services
Aug 16 09:53:05 localhost xinetd[29034]: START: telnet pid=29038 from=127.0.0.1
Aug 16 09:53:09 localhost xinetd[29034]: EXIT: telnet status=0 pid=29038 duratio
n=4(sec)
Aug 16 09:53:12 localhost xinetd[29034]: START: poppassd pid=29041 from=127.0.0.
1
Aug 16 09:53:28 localhost poppassd[29041]: old password is incorrect for user na
me
Aug 16 09:53:31 localhost xinetd[29034]: EXIT: poppassd status=1 pid=29041 durat
ion=19(sec)
/etc/xinetd.d/poppassd文件内容如下:
# default: off
# description: The POPPASSD service allows remote users to change their
# password remotely via Eudora or NUPOP using a network
# protocol on port 106.
#
service poppassd
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/poppassd
only_from = 127.0.0.1
log_on_success += USERID
log_on_failure += USERID
}
使用telnet来测试
[root@localhost pam.d]# telnet 127.0.0.1 106
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 poppassd v1.8.1 hello, who are you?
username test
200 Your password please.
password 123456
500 Old password is incorrect.
Connection closed by foreign host.