On Wed, 9 Jun 2004, RYAN vAN GINNEKEN wrote:
>v22.computerking.ca > ~ $echo "rmvg\0xxxxxx\0" | 
>/usr/local/bin/checkpassword 3<&0 echo; echo  $?
>2

The exit code 2 means "misuse", probably caused by, like Henry also said, 
the missing '-e' argument to echo.

echo -e "rmvg\0xxxxxx\0" | /usr/local/bin/checkpassword

Btw, this is just to check that 1) checkpassword works and 2) your
password is correct. The internal error the Binc IMAP reports is very
difficult to track down if we can't do a trace. To do this, we need to 
find the pid of bincimap-up. So:

1) Open a terminal, go "telnet <imapserver> 143" and see that you get
   the greeting. Leave this terminal open.

2) Open a second terminal. As root, do a "ps fax | grep bincimap-up" or
   something. Ignore the "grep" line of the output. We're looking for the
   bincimap-up pid. If you have connected to the right server and got
   the greeting in step (1), then the bincimap-up process is on the list.

3) Attach to this pid with ktrace:

   ktrace -d -i -p <pid>

4) With the first terminal, log in as descried earlier.

5) Log out with telnet after the failed login.

6) The ktrace should terminal automatically at this point. Now run
   this command in the same directory that you ran ktrace:

   kdump

7) Post that output to this list.

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to