--On Dienstag, 24. Juli 2001 23:55 +0000 Abe Scwartz <[EMAIL PROTECTED]>
wrote:
[...]
> My question was (specifically) - is there any way to extract debug
> information from sqwebmail during authentication (if at all)? I have no idea
> how far along it's actually getting.

I dont (want to..) know about vchk*, but you can strace SQWebmail
while called as cgi and also get details about authentification:

0.000000 execve("./webmail", ["./webmail"], ["GATEWAY_INTERFACE=CGI/1.1",...
0.076839 read(0, "username=test&password=test...
0.044627 open("/relay/share/sqwebmail/html/en-us/LOCALE", O_RDONLY)...
0.044578 connect(4, {sin_family=AF_UNIX, path="/relay/var/authdaemon/socket"}...
0.044444 write(4, "AUTH 23\nwebmail\nlogin\ntest\ntest\n", 32
0.044617 read(4, "UID=7780\nGID=7780\nHOME=/relay/home/test\nADDRESS=test\n...
[...]

OT: SQwebmail reads the templates bevore the authentification take
place, this makes a hack for user-based templates very difficult :)

Roland


#!/bin/sh
# SQWebmail Online Debugger
# copy this beside webmail as 'webmail-strace', set cgi-permissions
# like always and call via HTTP as: './webmail-strace?noframes=1'

export TEMP="/tmp/webmail.$$"
# umask 022

echo 'Content-Type: text/html
'
/usr/local/bin/strace -ffrTv -a 64 -s 64 \
        -o $TEMP.strace ./webmail 2> $TEMP.stderr

echo '<hr><plaintext>--------
STDERR:'; /bin/cat $TEMP.stderr
echo '--------
STRACE:'; /bin/cat $TEMP.strace
echo '--------'
/bin/rm -fv $TEMP.stderr $TEMP.strace


Reply via email to