Hi folks,

I've tryed to connect courier-2.2.2 with authvchkpw to the
vpopmail-5.4.0-rc1, and probably I've finded a bug. MrSam has confirmed. I
hope my test could help you to define the bug, and to find the solution.
The thread in courier-imap ml is this: '[Courier-imap] Re:
courier-2.2.2.20040110, vpopmail-5.4.0-rc1 and authentication problem'

My test:
--------
# cat >/tmp/testit
pop3
login
[EMAIL PROTECTED]
test
^D
# /usr/local/courier-imap/libexec/authlib/authvchkpw \
   /bin/sh -c 'echo $AUTHENTICATED' 3</tmp/testit

AUTHFAILURE
#

My ktrace (like strace):
------------------------
ktrace /usr/local/courier-imap/libexec/authlib/authvchkpw \
  /bin/sh -c 'echo $AUTHENTICATED' 3</tmp/testit
kdump -f ktrace.out > kdump.out

 18592 ktrace   RET   ktrace 0
 18592 ktrace   CALL  execve(0xcfbfdbcf,0xcfbfdb74,0xcfbfdb8c)
 18592 ktrace   NAMI  "/usr/local/courier-imap/libexec/authlib/authvchkpw"
 18592 authvchkpw EMUL  "native"
 18592 authvchkpw RET   execve 0
 18592 authvchkpw CALL  open(0x10e5,0,0)
 18592 authvchkpw NAMI  "/usr/libexec/ld.so"
 18592 authvchkpw RET   open 3
 18592 authvchkpw CALL  read(0x3,0xcfbfd8a4,0x20)
 18592 authvchkpw GIO   fd 3 read 32 bytes
       "[EMAIL PROTECTED] \0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0"
 18592 authvchkpw RET   read 32/0x20
 18592 authvchkpw CALL  mmap(0,0xf000,0x5,0x2,0x3,0,0,0)
 18592 authvchkpw RET   mmap 1073831936/0x40016000
 18592 authvchkpw CALL  mmap(0x40023000,0x2000,0x7,0x12,0x3,0,0xd000,0)
 18592 authvchkpw RET   mmap 1073885184/0x40023000
 18592 authvchkpw CALL  issetugid
 18592 authvchkpw RET   issetugid 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd714,0x2,0x40024a08,0xcfbfd710,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  mmap(0,0x8000,0x3,0x1004,0xffffffff,0,0,0)
 18592 authvchkpw RET   mmap 1073893376/0x40025000
 18592 authvchkpw CALL  open(0x40017b74,0,0)
 18592 authvchkpw NAMI  "/var/run/ld.so.hints"
 18592 authvchkpw RET   open 4
 18592 authvchkpw CALL  fstat(0x4,0xcfbfd6bc)
 18592 authvchkpw RET   fstat 0
 18592 authvchkpw CALL  mmap(0,0x1bcb,0x1,0x4,0x4,0,0,0)
 18592 authvchkpw RET   mmap 1073926144/0x4002d000
 18592 authvchkpw CALL  open(0x4002e26e,0,0)
 18592 authvchkpw NAMI  "/usr/lib/libm.so.1.0"
 18592 authvchkpw RET   open 5
 18592 authvchkpw CALL  read(0x5,0xcfbfd79c,0x20)
 18592 authvchkpw GIO   fd 5 read 32 bytes
       "[EMAIL PROTECTED]
\0\0\0\0\0\0\0\0\0\0\0"
 18592 authvchkpw RET   read 32/0x20
 18592 authvchkpw CALL  mmap(0,0x14000,0x5,0x4,0x5,0,0,0)
 18592 authvchkpw RET   mmap 1073934336/0x4002f000
 18592 authvchkpw CALL  mprotect(0x40042000,0x1000,0x7)
 18592 authvchkpw RET   mprotect 0
 18592 authvchkpw CALL  mmap(0x40043000,0,0x3,0x1014,0xffffffff,0,0,0)
 18592 authvchkpw RET   mmap 1074016256/0x40043000
 18592 authvchkpw CALL  close(0x5)
 18592 authvchkpw RET   close 0
 18592 authvchkpw CALL  open(0x4002e093,0,0)
 18592 authvchkpw NAMI  "/usr/lib/libc.so.29.0"
 18592 authvchkpw RET   open 5
 18592 authvchkpw CALL  read(0x5,0xcfbfd79c,0x20)
 18592 authvchkpw GIO   fd 5 read 32 bytes
       "[EMAIL PROTECTED]
\0\0\0\0\0\0\0\0\0\0\0"
 18592 authvchkpw RET   read 32/0x20
 18592 authvchkpw CALL  mmap(0,0xbd6f0,0x5,0x4,0x5,0,0,0)
 18592 authvchkpw RET   mmap 1074016256/0x40043000
 18592 authvchkpw CALL  mprotect(0x400c9000,0x9000,0x7)
 18592 authvchkpw RET   mprotect 0
 18592 authvchkpw CALL  mmap(0x400d2000,0x2e6f0,0x3,0x1014,0xffffffff,0,0,0)
 18592 authvchkpw RET   mmap 1074601984/0x400d2000
 18592 authvchkpw CALL  close(0x5)
 18592 authvchkpw RET   close 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18210,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18214,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18218,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x1821c,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18220,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18224,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x18228,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd6c4,0x2,0x1822c,0xcfbfd6c0,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  munmap(0x4002d000,0x1bcb)
 18592 authvchkpw RET   munmap 0
 18592 authvchkpw CALL  close(0x4)
 18592 authvchkpw RET   close 0
 18592 authvchkpw CALL  close(0x3)
 18592 authvchkpw RET   close 0
 18592 authvchkpw CALL  __sysctl(0xcfbfd84c,0x2,0x401006e8,0xcfbfd848,0,0)
 18592 authvchkpw RET   __sysctl 0
 18592 authvchkpw CALL  readlink(0x4008a5f6,0xcfbfd7a4,0x3f)
 18592 authvchkpw NAMI  "/etc/malloc.conf"
 18592 authvchkpw RET   readlink -1 errno 2 No such file or directory
 18592 authvchkpw CALL  issetugid
 18592 authvchkpw RET   issetugid 0
 18592 authvchkpw CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 18592 authvchkpw RET   mmap 1073926144/0x4002d000
 18592 authvchkpw CALL  break(0x185bc)
 18592 authvchkpw RET   break 0
 18592 authvchkpw CALL  break(0x185bc)
 18592 authvchkpw RET   break 0
 18592 authvchkpw CALL  break(0x1a000)
 18592 authvchkpw RET   break 0
 18592 authvchkpw CALL  break(0x1a000)
 18592 authvchkpw RET   break 0
 18592 authvchkpw CALL  break(0x1b000)
 18592 authvchkpw RET   break 0
 18592 authvchkpw CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
 18592 authvchkpw RET   mmap 1073930240/0x4002e000
 18592 authvchkpw CALL  mprotect(0x4002e000,0x1000,0x1)
 18592 authvchkpw RET   mprotect 0
 18592 authvchkpw CALL  mprotect(0x4002e000,0x1000,0x3)
 18592 authvchkpw RET   mprotect 0
 18592 authvchkpw CALL  mprotect(0x4002e000,0x1000,0x1)
 18592 authvchkpw RET   mprotect 0
 18592 authvchkpw CALL  fcntl(0x3,0x3,0)
 18592 authvchkpw RET   fcntl -1 errno 9 Bad file descriptor
 18592 authvchkpw CALL  write(0x2,0x1a69,0xc)
 18592 authvchkpw GIO   fd 2 wrote 12 bytes
       "AUTHFAILURE
       "
 18592 authvchkpw RET   write 12/0xc
 18592 authvchkpw CALL  munmap(0x4002e000,0x1000)
 18592 authvchkpw RET   munmap 0
 18592 authvchkpw CALL  exit(0x1)

Could you help me?
There's another test that could I do?
I'm not a Unix specialist, but I'm motivated.

Thanks for all
Regards
Andrea

Reply via email to