Subject: Re: poppassd build failure
To: None <tech-pkg@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 06/14/2005 21:01:43
On Tue, 14 Jun 2005, Takahiro Kambe wrote:

>>> Jun 13 21:08:48 myhost poppassd[27324]: passwd failed for mylogin
>> Please tell me your poppassd line in /etc/inetd.conf.

Taken directy from MESSAGE, i.e.

poppass stream tcp nowait root /usr/pkg/libexec/poppassd poppassd
poppass stream tcp6 nowait root /usr/pkg/libexec/poppassd poppassd

> Or you could use "-t" option to check what's going on.

I added -d -t /tmp/logfile and tried again:

Jun 14 20:56:13.092 2005 [13964] Opened trace file "/tmp/logfile" as 3
Jun 14 20:56:13.092 2005 
Jun 14 20:56:13.093 2005 [13964] WriteToClient: 200 myhost poppassd 
v4.0.8 hello, who are you?
Jun 14 20:56:13.093 2005 
Jun 14 20:56:13.093 2005 [13964] ReadFromClient: 11 'USER myname'
Jun 14 20:56:13.093 2005 
Jun 14 20:56:13.093 2005 [13964] WriteToClient: 200 your password please.
Jun 14 20:56:13.093 2005 
Jun 14 20:56:13.093 2005 [13964] ReadFromClient: pass xxxx
Jun 14 20:56:13.093 2005 
Jun 14 20:56:13.094 2005 [13964] WriteToClient: 200 your new password please.
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.094 2005 [13964] ReadFromClient: newpass xxxx
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.094 2005 [13964] findpty found 5
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.094 2005 [13964] talktochild; master=5; userid=myname; asroot=0
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.094 2005 [13964] expect; master=5; expected=(44)'changing local 
password for *\nold password: '...
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.094 2005 [13964] ...reading (1023) from child...
Jun 14 20:56:13.094 2005 
Jun 14 20:56:13.095 2005 [26553] ...changing standard password
Jun 14 20:56:13.095 2005 
Jun 14 20:56:13.106 2005 [13964] ...read: (13) 'Old Password:'
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] match; str=(14)'Old Password:\n'; pat=(44)'chan
ging local password for *\nold password: '
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] ...returning 0
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] match; str=(14)'Old Password:\n'; pat=(38)'chan
ging password for *\nold password: '
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] ...returning 0
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] match; str=(14)'Old Password:\n'; pat=(22)'ente
r login password: '
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] ...returning 0
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] match; str=(14)'Old Password:\n'; pat=(18)'old 
smb password: '
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] ...returning 0
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] expect: failure
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.106 2005 [13964] passwd failed for myname
Jun 14 20:56:13.106 2005 
Jun 14 20:56:13.108 2005 [13964] WriteToClient: 500 Unable to change password
Jun 14 20:56:13.108 2005

The password (nor Samba password) was changed.

Martti