Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 27 Oct 2003 18:11:29 +0100 (MET)
From: "Philipp Jacob" <ph.jacob@....de>
To: popa3d-users@...ts.openwall.com
Subject: Re: Virtual Domains

> On Wed, Oct 22, 2003 at 01:05:42PM +0200, Philipp Jacob wrote:
[...]
> > I'm using popa3d with stunnel and stunnel runs in daemon mode.
> > A start script invokes stunnel as follows:
> > '/usr/sbin/stunnel -d pop3s -p /etc/ssl/certs/pop3s.pem -l
> > /usr/local/sbin/popa3d'
> > 
> > How can I 'strace' such sessions?
> > I'm not familiar with this program.
> 
> As the problem occurs after authentication, you can start a session
> manually, note the PID of the session's parent process (the one
> running as root at this point), then attach to it with strace -p <PID>,
> and finally complete authentication (issue the USER and PASS commands).


I started a session manually on the server machine itself.
But now I get a
   'popa3d[27916]: Authentication failed for UNKNOWN USER'
in the syslog.

The USER-PASS-combination is correct, like I created it before with
the add-popa3d-user script.


'strace -p 27916' gives the following output:

"read(3, 0x804da80, 136)                 = ? ERESTARTSYS (To be restarted)
--- SIGCHLD (Child exited) ---
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\n\0\0\0\0\0"..., 136) =
136
read(3, "<USER>\0<PASS>\0", 256)     = 17
read(3, "", 239)                        = 0
getsockname(0, 0xbffffb60, [16])        = -1 ENOTSOCK (Socket operation on
non-socket)
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 27917
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40012000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) =
837
close(4)                                = 0
munmap(0x40012000, 4096)                = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sin_family=AF_UNIX, path="/dev/log"}, 16) = 0
chroot("/var/empty")                    = 0
chdir("/")                              = 0
setgroups32(0x1, 0xbffffd08)            = 0
setgid32(0x65)                          = 0
setuid32(0x66)                          = 0
brk(0)                                  = 0x804f000
brk(0x8050000)                          = 0x8050000
brk(0)                                  = 0x8050000
brk(0x8052000)                          = 0x8052000
time([1067274604])                      = 1067274604
getpid()                                = 27916
rt_sigaction(SIGPIPE, {0x4010440e, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<29>Oct 27 18:10:04 popa3d[27916"..., 73, 0) = 73
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 3), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40012000
write(1, "-ERR Authentication failed (bad "..., 44) = 44
munmap(0x40012000, 4096)                = 0
semget(IPC_PRIVATE, 4096, IPC_EXCL|IPC_NOWAIT|0x4014d0e0|0240) = -1 ENOSYS
(Function not implemented)
_exit(0)                                = ?"


Any hints?
Philipp

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.